repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Create embedded-5_0-branch branch for development on ARM embedded cores.
[official-gcc.git]
/
embedded-5_0-branch
/
gcc
/
testsuite
/
gcc.c-torture
/
compile
/
pr42196-3.c
blob
ccc0d7a195cf6f3b8678d51dee6567fc40c0e425
1
union
U
2
{
3
__complex__
int
ci
;
4
__complex__
float
cf
;
5
};
6
7
float
gd
;
8
extern
float
bar
(
float
,
float
);
9
10
float
foo
(
int
b
,
union
U u
)
11
{
12
float
f1
,
f2
,
r
;
13
14
if
(
b
)
15
{
16
f1
=
__real__ u
.
cf
;
17
f1
=
__imag__ u
.
cf
;
18
}
19
else
20
{
21
f1
=
__real__ u
.
ci
;
22
f1
=
__imag__ u
.
ci
;
23
}
24
25
r
=
bar
(
f1
,
f2
);
26
return
r
;
27
}