gcc/testsuite/gcc.dg/tree-ssa/pr102546.c
raw| 1 | // { dg-do compile } |
| 2 | // { dg-options "-O3 -fdump-tree-optimized" } |
| 3 | |
| 4 | static int a; |
| 5 | static char b, c, d; |
| 6 | void bar(void); |
| 7 | void foo(void); |
| 8 | |
| 9 | int main() { |
| 10 | int f = 0; |
| 11 | for (; f <= 5; f++) { |
| 12 | bar(); |
| 13 | b = b && f; |
| 14 | d = f << f; |
| 15 | if (!(a >= d || f)) |
| 16 | foo(); |
| 17 | c = 1; |
| 18 | for (; c; c = 0) |
| 19 | ; |
| 20 | } |
| 21 | } |
| 22 | |
| 23 | // { dg-final { scan-tree-dump-not "foo" "optimized" } } |