gcc/testsuite/gcc.dg/tree-ssa/20030807-9.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O1 -fdump-tree-dom2" } */ |
| 3 | |
| 4 | void oof (const char *); |
| 5 | void foo (void); |
| 6 | |
| 7 | static void |
| 8 | bar () |
| 9 | { |
| 10 | const char *label2 = (*"*.L_sfnames_b" == '*') + "*.L_sfnames_b"; |
| 11 | oof (label2); |
| 12 | } |
| 13 | |
| 14 | void |
| 15 | ooof () |
| 16 | { |
| 17 | if (""[0] == 0) |
| 18 | foo(); |
| 19 | } |
| 20 | |
| 21 | /* There should be no IF conditionals. */ |
| 22 | /* { dg-final { scan-tree-dump-times "if " 0 "dom2"} } */ |