gcc/testsuite/gcc.c-torture/execute/pr58640-2.c
raw| 1 | extern void abort (void); |
| 2 | |
| 3 | int a[20], b, c; |
| 4 | |
| 5 | int |
| 6 | fn1 () |
| 7 | { |
| 8 | int d, e, f, g = 0; |
| 9 | |
| 10 | a[12] = 1; |
| 11 | for (e = 0; e < 3; e++) |
| 12 | for (d = 0; d < 2; d++) |
| 13 | { |
| 14 | for (f = 0; f < 2; f++) |
| 15 | { |
| 16 | g ^= a[12] > 1; |
| 17 | if (g) |
| 18 | return 0; |
| 19 | if (b) |
| 20 | break; |
| 21 | } |
| 22 | for (c = 0; c < 1; c++) |
| 23 | a[d] = a[e * 3 + 9]; |
| 24 | } |
| 25 | return 0; |
| 26 | } |
| 27 | |
| 28 | int |
| 29 | main () |
| 30 | { |
| 31 | fn1 (); |
| 32 | if (a[0] != 0) |
| 33 | abort (); |
| 34 | return 0; |
| 35 | } |