gcc/testsuite/gcc.c-torture/compile/20020807-1.c
raw| 1 | int x; |
| 2 | |
| 3 | static int |
| 4 | __attribute__ ((noinline)) |
| 5 | foo (void) |
| 6 | { |
| 7 | return 0; |
| 8 | } |
| 9 | |
| 10 | static void |
| 11 | __attribute__ ((noinline)) |
| 12 | bar (void) |
| 13 | { |
| 14 | } |
| 15 | |
| 16 | static inline void |
| 17 | baz (void) |
| 18 | { |
| 19 | char arr[x]; |
| 20 | |
| 21 | lab: |
| 22 | if (foo () == -1) |
| 23 | { |
| 24 | bar (); |
| 25 | goto lab; |
| 26 | } |
| 27 | } |
| 28 | |
| 29 | void |
| 30 | test (void) |
| 31 | { |
| 32 | baz (); |
| 33 | } |