gcc/testsuite/gcc.dg/pr109410.c
raw| 1 | /* PR tree-optimization/109410 */ |
| 2 | /* { dg-do compile } */ |
| 3 | /* { dg-options "-O2" } */ |
| 4 | |
| 5 | __attribute__((returns_twice)) int baz (int, int); |
| 6 | |
| 7 | int |
| 8 | bar (int x) |
| 9 | { |
| 10 | return x; |
| 11 | } |
| 12 | |
| 13 | int |
| 14 | foo (int x, int y) |
| 15 | { |
| 16 | baz (x, y); |
| 17 | int a = bar (x); |
| 18 | return y || a == 42 || a > 42; |
| 19 | } |