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
[clang] Handle __declspec() attributes in using
[llvm-project.git]
/
clang
/
test
/
CXX
/
class
/
class.union
/
class.union.anon
/
p4.cpp
blob
a12ec38503fa80675d92c9d19a7f8d7ad9bf74c8
1
// RUN: %clang_cc1 -std=c++11 -verify %s
2
3
union
U
{
4
int
x
=
0
;
// expected-note {{previous initialization is here}}
5
union
{};
// expected-warning {{does not declare anything}}
6
union
{
7
int
z
;
8
int
y
=
1
;
// expected-error {{initializing multiple members of union}}
9
};
10
};