gcc/testsuite/gcc.dg/pr112430.c
raw| 1 | /* PR middle-end/112430 */ |
| 2 | /* { dg-do compile } */ |
| 3 | /* { dg-options "-O2 -g" } */ |
| 4 | |
| 5 | int a, b, c, d, e; |
| 6 | unsigned int f; |
| 7 | |
| 8 | static void |
| 9 | foo (unsigned int x) |
| 10 | { |
| 11 | unsigned int g = x < c; |
| 12 | int h = f < b; |
| 13 | x += h; |
| 14 | g += x < h; |
| 15 | f = x; |
| 16 | x = g; |
| 17 | g = f += a; |
| 18 | h = f < a; |
| 19 | x += h; |
| 20 | c += f < d; |
| 21 | x += c; |
| 22 | g += x < c; |
| 23 | e = g; |
| 24 | } |
| 25 | |
| 26 | void |
| 27 | bar (unsigned int x) |
| 28 | { |
| 29 | foo (x); |
| 30 | } |