repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
No empty .Rs/.Re
[netbsd-mini2440.git]
/
gnu
/
dist
/
gcc4
/
gcc
/
testsuite
/
g++.dg
/
other
/
anon-union.C
blob
51598bf3adecb9f4e9d7ebb1d99f32933d9eaf23
1
// { dg-do compile }
2
// { dg-options -O2 }
3
4
int foo ();
5
double bar (void)
6
{
7
union
8
{
9
char a[8];
10
double b;
11
};
12
13
a[0] = foo ();
14
a[1] = foo ();
15
a[2] = foo ();
16
a[3] = foo ();
17
a[4] = foo ();
18
a[5] = foo ();
19
a[6] = foo ();
20
a[7] = foo ();
21
return b;
22
}