Debian Codegraph @

gcc/testsuite/gcc.c-torture/execute/20000801-3.c

raw
1 /* Origin: PR c/92 from Simon Marlow <[email protected]>, adapted
2 to a testcase by Joseph Myers <[email protected]>.
3 */
4
5 void abort (void);
6 void exit (int);
7
8 typedef struct { } empty;
9
10 typedef struct {
11 int i;
12 empty e;
13 int i2;
14 } st;
15
16 st s = { .i = 0, .i2 = 1 };
17
18 extern void abort (void);
19
20 int
21 main (void)
22 {
23 if (s.i2 == 1)
24 exit (0);
25 else
26 abort ();
27 }