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
Fix PR c++/47398
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
gcc.dg
/
20011008-2.c
1
/* { dg-do run } */
2
/* { dg-options "-O0" } */
3
4
extern void abort (void);
5
extern void exit (int);
6
7
struct { union {int x; int y;}; int q; } b;
8
union { struct {int x;}; int q; } e;
9
10
main()
11
{
12
b.y = 10;
13
b.x = 15;
14
if (b.y != 15)
15
abort();
16
17
e.x = 10;
18
e.q = 15;
19
if (e.x != 15)
20
abort();
21
22
exit(0);
23
}