* gcc.dg/stack-check-5.c: Skip with -fstack-protector.
[official-gcc.git] / gcc / testsuite / gcc.dg / 20011008-2.c
blob0ea0229ba540968a90198415a2aa21146b9676f5
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 int
11 main()
13 b.y = 10;
14 b.x = 15;
15 if (b.y != 15)
16 abort();
18 e.x = 10;
19 e.q = 15;
20 if (e.x != 15)
21 abort();
23 exit(0);