gcc/testsuite/gcc.dg/tree-ssa/inline-13.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O2 -fno-early-inlining -fdump-tree-fixup_cfg3" } */ |
| 3 | |
| 4 | int n; |
| 5 | |
| 6 | static int |
| 7 | bar (void) |
| 8 | { |
| 9 | int a; |
| 10 | |
| 11 | n = 0; |
| 12 | a = 0; |
| 13 | |
| 14 | return n; |
| 15 | } |
| 16 | |
| 17 | __attribute__ ((pure, returns_twice)) int |
| 18 | foo (void) |
| 19 | { |
| 20 | n = bar () + 1; |
| 21 | foo (); |
| 22 | |
| 23 | return 0; |
| 24 | } |
| 25 | |
| 26 | /* Abnormal edges should be properly elided after IPA inlining of bar. */ |
| 27 | /* { dg-final { scan-tree-dump-times "bb" 1 "fixup_cfg3" } } */ |