gcc/testsuite/gcc.c-torture/compile/pr110271.c
raw| 1 | /* PR tree-optimization/110271 */ |
| 2 | |
| 3 | unsigned a, b, c, d, e; |
| 4 | |
| 5 | void |
| 6 | foo (unsigned *x, int y, unsigned int *z) |
| 7 | { |
| 8 | for (int i = 0; i < y; i++) |
| 9 | { |
| 10 | b += d; |
| 11 | a += b < d; |
| 12 | a += c = (__PTRDIFF_TYPE__) x > 3; |
| 13 | d = z[1] + (a < c); |
| 14 | a += e; |
| 15 | d += a < e; |
| 16 | } |
| 17 | } |
| 18 | |
| 19 | void |
| 20 | bar (unsigned int *z) |
| 21 | { |
| 22 | unsigned *x = x; |
| 23 | foo (x, 9, z); |
| 24 | } |