gcc/testsuite/gcc.c-torture/execute/pr57877.c
raw| 1 | /* PR rtl-optimization/57877 */ |
| 2 | |
| 3 | extern void abort (void); |
| 4 | int a, b, *c = &b, e, f = 6, g, h; |
| 5 | short d; |
| 6 | |
| 7 | static unsigned char |
| 8 | foo (unsigned long long p1, int *p2) |
| 9 | { |
| 10 | for (; g <= 0; g++) |
| 11 | { |
| 12 | short *i = &d; |
| 13 | int *j = &e; |
| 14 | h = *c; |
| 15 | *i = h; |
| 16 | *j = (*i == *p2) < p1; |
| 17 | } |
| 18 | return 0; |
| 19 | } |
| 20 | |
| 21 | int |
| 22 | main () |
| 23 | { |
| 24 | foo (f, &a); |
| 25 | if (e != 1) |
| 26 | abort (); |
| 27 | return 0; |
| 28 | } |