2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / 20000801-3.c
blob8d47a8155fe7593e271f7227719dc9dc55a60494
1 /* Origin: PR c/92 from Simon Marlow <t-simonm@microsoft.com>, adapted
2 to a testcase by Joseph Myers <jsm28@cam.ac.uk>.
3 */
5 typedef struct { } empty;
7 typedef struct {
8 int i;
9 empty e;
10 int i2;
11 } st;
13 st s = { .i = 0, .i2 = 1 };
15 extern void abort (void);
17 int
18 main (void)
20 if (s.i2 == 1)
21 exit (0);
22 else
23 abort ();