gcc/testsuite/gcc.dg/pr106923.c
raw| 1 | /* PR tree-optimization/106923 */ |
| 2 | /* { dg-do compile } */ |
| 3 | /* { dg-options "-O1 -finline-small-functions -fpartial-inlining --param max-inline-insns-single=1 --param uninlined-function-insns=10000" } */ |
| 4 | |
| 5 | int n; |
| 6 | |
| 7 | int |
| 8 | baz (void); |
| 9 | |
| 10 | __attribute__ ((returns_twice)) int |
| 11 | bar (void) |
| 12 | { |
| 13 | if (baz ()) |
| 14 | ++n; |
| 15 | |
| 16 | return 0; |
| 17 | } |
| 18 | |
| 19 | int |
| 20 | foo (void) |
| 21 | { |
| 22 | return bar (); |
| 23 | } |