aboutsummaryrefslogtreecommitdiff
path: root/clang/test/Sema/GH70594.cpp
blob: ce98e9b12b5cba3eb2e5c35e7d540d7ec66d3a65 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// RUN: %clang_cc1 -fsyntax-only -std=c++11 %s -verify
// RUN: %clang_cc1 -fsyntax-only -std=c++23 %s -verify

// expected-no-diagnostics

struct A {};
using CA = const A;

struct S1 : CA {
  constexpr S1() : CA() {}
};

struct S2 : A {
  constexpr S2() : CA() {}
};

struct S3 : CA {
  constexpr S3() : A() {}
};

struct Int {};

template <class _Hp>
struct __tuple_leaf : _Hp {
  constexpr __tuple_leaf() : _Hp() {}
};

constexpr __tuple_leaf<const Int> t;