Debian Codegraph @

clang/test/SemaCXX/PR22637.cpp

raw
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2
3 // expected-no-diagnostics
4
5 void check(int&) = delete;
6 void check(int const&) { }
7
8 template <typename>
9 struct A {
10 union {
11 int b;
12 };
13 struct {
14 int c;
15 };
16 union {
17 struct {
18 union {
19 struct {
20 struct {
21 int d;
22 };
23 };
24 };
25 };
26 };
27 int e;
28 void foo() const {
29 check(b);
30 check(c);
31 check(d);
32 check(d);
33 check(e);
34 }
35 };
36
37 int main(){
38 A<int> a;
39 a.foo();
40 }