| 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 { |
| 10 |
constexpr S1() : CA() {} |
| 11 |
}; |
| 12 |
|
| 13 |
struct S2 : A { |
| 14 |
constexpr S2() : CA() {} |
| 15 |
}; |
| 16 |
|
| 17 |
struct S3 : CA { |
| 18 |
constexpr S3() : A() {} |
| 19 |
}; |
| 20 |
|
| 21 |
struct Int {}; |
| 22 |
|
| 23 |
template <class _Hp> |
| 24 |
struct __tuple_leaf : _Hp { |
| 25 |
constexpr __tuple_leaf() : _Hp() {} |
| 26 |
}; |
| 27 |
|
| 28 |
constexpr __tuple_leaf<const Int> t; |