[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / clang / test / SemaCXX / PR22637.cpp
blob1a9bf1df43c5d28771350efa98f167d8f55c0f2b
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
3 // expected-no-diagnostics
5 void check(int&) = delete;
6 void check(int const&) { }
8 template <typename>
9 struct A {
10 union {
11 int b;
13 struct {
14 int c;
16 union {
17 struct {
18 union {
19 struct {
20 struct {
21 int d;
27 int e;
28 void foo() const {
29 check(b);
30 check(c);
31 check(d);
32 check(d);
33 check(e);
37 int main(){
38 A<int> a;
39 a.foo();