repo.or.cz
/
clang.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[analyzer] Refactoring: Drop the 'GR' prefix.
[clang.git]
/
test
/
CodeGenCXX
/
member-init-union.cpp
blob
2c50e18b6ffa8f80ad87e55e81b6ba178f22d459
1
// RUN: %clang_cc1 %s -emit-llvm-only -verify
2
3
union
x
{
4
int
a
;
5
float
b
;
6
x
(
float
y
) :
b
(
y
) {}
7
x
(
int
y
) :
a
(
y
) {}
8
};
9
x
a
(
1
),
b
(
1.0
f
);
10