gcc/testsuite/gcc.c-torture/execute/20001203-1.c
raw| 1 | /* Origin: PR c/410 from Jan Echternach |
| 2 | <[email protected]>, |
| 3 | adapted to a testcase by Joseph Myers <[email protected]>. |
| 4 | */ |
| 5 | |
| 6 | extern void exit (int); |
| 7 | |
| 8 | static void |
| 9 | foo (void) |
| 10 | { |
| 11 | struct { |
| 12 | long a; |
| 13 | char b[1]; |
| 14 | } x = { 2, { 0 } }; |
| 15 | } |
| 16 | |
| 17 | int |
| 18 | main (void) |
| 19 | { |
| 20 | int tmp; |
| 21 | foo (); |
| 22 | tmp = 1; |
| 23 | exit (0); |
| 24 | } |