gcc/
[official-gcc.git] / gcc / testsuite / gcc.dg / 20011008-2.c
blob01ff172b4ff03023d3fd1205ac6e9e34ee2681fa
1 /* { dg-do run } */
2 /* { dg-options "-O0" } */
4 extern void abort (void);
5 extern void exit (int);
7 struct { union {int x; int y;}; int q; } b;
8 union { struct {int x;}; int q; } e;
10 main()
12 b.y = 10;
13 b.x = 15;
14 if (b.y != 15)
15 abort();
17 e.x = 10;
18 e.q = 15;
19 if (e.x != 15)
20 abort();
22 exit(0);