gcc/testsuite/gcc.dg/torture/pr69352.c
raw| 1 | /* { dg-do compile } */ |
| 2 | |
| 3 | __extension__ typedef __INTPTR_TYPE__ intptr_t; |
| 4 | |
| 5 | int a[10][14], b, c, d, e, f, g, h, i; |
| 6 | void bar (void); |
| 7 | int |
| 8 | foo (int x) |
| 9 | { |
| 10 | unsigned j; |
| 11 | int k = 0, l; |
| 12 | int m; |
| 13 | if (h) |
| 14 | m = 12; |
| 15 | else |
| 16 | m = 13; |
| 17 | if (a[x][m]) |
| 18 | l = (intptr_t) foo; |
| 19 | a[x][i] = l; |
| 20 | while (c) |
| 21 | { |
| 22 | if (b) |
| 23 | { |
| 24 | if (f) |
| 25 | k = 1; |
| 26 | bar (); |
| 27 | } |
| 28 | for (; d;) |
| 29 | j++; |
| 30 | } |
| 31 | while (c) |
| 32 | { |
| 33 | if (a[x][12]) |
| 34 | { |
| 35 | if (g) |
| 36 | k = 1; |
| 37 | j++; |
| 38 | } |
| 39 | c = e; |
| 40 | } |
| 41 | return k; |
| 42 | } |