gcc/testsuite/gcc.c-torture/execute/pr70586.c
raw| 1 | /* PR tree-optimization/70586 */ |
| 2 | |
| 3 | int a, e, f; |
| 4 | short b, c, d; |
| 5 | |
| 6 | int |
| 7 | foo (int x, int y) |
| 8 | { |
| 9 | return (y == 0 || (x && y == 1)) ? x : x % y; |
| 10 | } |
| 11 | |
| 12 | static short |
| 13 | bar (void) |
| 14 | { |
| 15 | int i = foo (c, f); |
| 16 | f = foo (d, 2); |
| 17 | int g = foo (b, c); |
| 18 | int h = foo (g > 0, c); |
| 19 | c = (3 >= h ^ 7) <= foo (i, c); |
| 20 | if (foo (e, 1)) |
| 21 | return a; |
| 22 | return 0; |
| 23 | } |
| 24 | |
| 25 | int |
| 26 | main () |
| 27 | { |
| 28 | bar (); |
| 29 | return 0; |
| 30 | } |