gcc/testsuite/gcc.dg/torture/pr112305.c
raw| 1 | /* { dg-do run } */ |
| 2 | /* { dg-require-effective-target int32plus } */ |
| 3 | /* { dg-skip-if "long-running loop" { simulator } { "-O0" "-O1" } } */ |
| 4 | |
| 5 | int a; |
| 6 | void b() |
| 7 | { |
| 8 | long c = 3; |
| 9 | unsigned int d = 50253292; |
| 10 | int e = 2147483648; |
| 11 | for (; a < 5; a++) |
| 12 | do { |
| 13 | e += 4; |
| 14 | d -= c; |
| 15 | } while (e < 20); |
| 16 | if (d != -1560359471u) |
| 17 | __builtin_abort (); |
| 18 | } |
| 19 | int main() { b(); } |