[RISCV] Simplify usage of SplatPat_simm5_plus1. NFC (#125340)
[llvm-project.git] / clang / test / SemaCXX / PR40395.cpp
blobea0fad2018771595b2818b31234da6e97e12051a
1 // RUN: %clang_cc1 -std=c++17 -fms-extensions -triple=x86_64-pc-win32 -verify %s
2 // RUN: %clang_cc1 -std=c++17 -fms-extensions -triple=x86_64-pc-win32 -verify %s -fexperimental-new-constant-interpreter
3 // expected-no-diagnostics
5 // PR40395 - ConstantExpr shouldn't cause the template object to infinitely
6 // expand.
7 struct _GUID {};
8 struct __declspec(uuid("{AAAAAAAA-AAAA-AAAA-AAAA-AAAAAAAAAAAA}")) B {};
10 template <const _GUID* piid>
11 struct A {
12 virtual void baz() { A<piid>(); }
15 void f() {
16 A<&__uuidof(B)>();