brintos

brintos / llvm-project-archived public Read only

0
0
Text · 459 B · ce98e9b Raw
29 lines · cpp
1// RUN: %clang_cc1 -fsyntax-only -std=c++11 %s -verify2// RUN: %clang_cc1 -fsyntax-only -std=c++23 %s -verify3 4// expected-no-diagnostics5 6struct A {};7using CA = const A;8 9struct S1 : CA {10  constexpr S1() : CA() {}11};12 13struct S2 : A {14  constexpr S2() : CA() {}15};16 17struct S3 : CA {18  constexpr S3() : A() {}19};20 21struct Int {};22 23template <class _Hp>24struct __tuple_leaf : _Hp {25  constexpr __tuple_leaf() : _Hp() {}26};27 28constexpr __tuple_leaf<const Int> t;29