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
* g++.dg/inherit/thunk7.C: New test.
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
ext
/
desig1.C
1
// { dg-options "" }
2
3
struct a {
4
int x;
5
};
6
7
struct b {
8
int x;
9
int y;
10
};
11
12
struct foo {
13
union {
14
struct a a;
15
struct b b;
16
} u;
17
};
18
19
int main(void)
20
{
21
struct foo bar = { u: { b: { x: 0, y: 0, }}};
22
(void)bar;
23
return 0;
24
}