repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git]
/
clang
/
test
/
SemaCXX
/
PR22637.cpp
blob
1a9bf1df43c5d28771350efa98f167d8f55c0f2b
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
}