xref: /llvm-project/clang/test/Sema/GH70594.cpp (revision e12a1f8b325a72191c261b4f11726a9c58f84817)
1 // RUN: %clang_cc1 -fsyntax-only -std=c++11 %s -verify
2 // RUN: %clang_cc1 -fsyntax-only -std=c++23 %s -verify
3 
4 // expected-no-diagnostics
5 
6 struct A {};
7 using CA = const A;
8 
9 struct S1 : CA {
S1S110   constexpr S1() : CA() {}
11 };
12 
13 struct S2 : A {
S2S214   constexpr S2() : CA() {}
15 };
16 
17 struct S3 : CA {
S3S318   constexpr S3() : A() {}
19 };
20 
21 struct Int {};
22 
23 template <class _Hp>
24 struct __tuple_leaf : _Hp {
__tuple_leaf__tuple_leaf25   constexpr __tuple_leaf() : _Hp() {}
26 };
27 
28 constexpr __tuple_leaf<const Int> t;
29