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
/
CodeGenCXX
/
member-init-union.cpp
blob
be171a365b011ee739b53d0a4829c6106315312a
1
// RUN: %clang_cc1 %s -emit-llvm-only -verify
2
// expected-no-diagnostics
3
4
union
x
{
5
int
a
;
6
float
b
;
7
x
(
float
y
) :
b
(
y
) {}
8
x
(
int
y
) :
a
(
y
) {}
9
};
10
x
a
(
1
),
b
(
1.0
f
);
11