gcc/testsuite/gcc.c-torture/execute/pr69320-4.c
raw| 1 | #include <stdlib.h> |
| 2 | |
| 3 | int a; |
| 4 | char b, d; |
| 5 | short c; |
| 6 | short fn1(int p1, int p2) { return p2 >= 2 ? p1 : p1 > p2; } |
| 7 | |
| 8 | int main() { |
| 9 | int *e = &a, *f = &a; |
| 10 | b = 1; |
| 11 | for (; b <= 9; b++) { |
| 12 | c = *e != 5 || d; |
| 13 | *f = fn1(c || b, a); |
| 14 | } |
| 15 | if ((long long) a != 1) |
| 16 | abort (); |
| 17 | exit (0); |
| 18 | } |