gcc/testsuite/gcc.c-torture/execute/pr64682.c
raw| 1 | /* PR rtl-optimization/64682 */ |
| 2 | |
| 3 | int a, b = 1; |
| 4 | |
| 5 | __attribute__((noinline, noclone)) void |
| 6 | foo (int x) |
| 7 | { |
| 8 | if (x != 5) |
| 9 | __builtin_abort (); |
| 10 | } |
| 11 | |
| 12 | int |
| 13 | main () |
| 14 | { |
| 15 | int i; |
| 16 | for (i = 0; i < 56; i++) |
| 17 | for (; a; a--) |
| 18 | ; |
| 19 | int *c = &b; |
| 20 | if (*c) |
| 21 | *c = 1 % (unsigned int) *c | 5; |
| 22 | |
| 23 | foo (b); |
| 24 | |
| 25 | return 0; |
| 26 | } |