OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
PR c++/28852
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
other
/
anon-union.C
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
}