gcc/testsuite/gcc.c-torture/compile/921202-1.c
raw| 1 | /* { dg-require-stack-size "2055*3*8" } */ |
| 2 | /* { dg-additional-options "-std=gnu89" } */ |
| 3 | |
| 4 | f () |
| 5 | { |
| 6 | long dx[2055]; |
| 7 | long dy[2055]; |
| 8 | long s1[2055]; |
| 9 | int x, y; |
| 10 | int i; |
| 11 | long s; |
| 12 | |
| 13 | for (;;) |
| 14 | { |
| 15 | s = 2055; |
| 16 | g (s1, s); |
| 17 | for (i = 0; i < 1; i++); |
| 18 | dy[s] = 0x12345; |
| 19 | for (i = 0; i < 1; i++); |
| 20 | if (x != y || h (dx, dy, s) || dx[s] != 0x12345) |
| 21 | { |
| 22 | j (y);k (dy); |
| 23 | } |
| 24 | } |
| 25 | } |