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
libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
tree-ssa
/
pr32964.c
blob
3d587119de90f06df48657451031c66866cc5d79
1
/* { dg-do compile } */
2
/* { dg-options "-O1 -fdump-tree-optimized" } */
3
4
union
A
5
{
6
float
a
;
7
};
8
9
float
t
(
float
a
)
10
{
11
union
A a1
,
a2
,
a3
;
12
int
i
;
13
14
a1
.
a
=
a
;
15
for
(
i
=
0
;
i
<
100
;
i
++)
16
{
17
a2
=
a1
;
18
a2
.
a
+=
a
;
19
a1
=
a2
;
20
}
21
a3
=
a1
;
22
return
a3
.
a
;
23
}
24
25
/* { dg-final { scan-tree-dump-times "union" 0 "optimized"} } */