gcc/testsuite/gcc.dg/torture/pr110243.c
raw| 1 | /* { dg-do run } */ |
| 2 | /* { dg-require-effective-target lp64 } */ |
| 3 | |
| 4 | #define X 1100000000 |
| 5 | unsigned char a; |
| 6 | long b = X; |
| 7 | int c[9][1]; |
| 8 | unsigned d; |
| 9 | static long *e = &b, *f = &b; |
| 10 | int g() { |
| 11 | if (a && a <= '9') |
| 12 | return '0'; |
| 13 | if (a) |
| 14 | return 10; |
| 15 | return -1; |
| 16 | } |
| 17 | int main() { |
| 18 | d = 0; |
| 19 | for (; (int)*f -(X-1) + d < 9; d++) |
| 20 | c[g() + (int)*f + ((int)*e - X) -(X-1) + d] |
| 21 | [0] = 0; |
| 22 | } |