PR tree-optimization/83369 - Missing diagnostics during inlining
[official-gcc.git] / gcc / testsuite / gcc.dg / inline-37.c
blobf96ed7972bd71fb91b44320d8caa62d1ab981601
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-optimized -fdisable-tree-einline=0:100 -fdisable-ipa-inline -Wno-attributes" } */
3 int g;
4 __attribute__((always_inline)) void bar (void)
6 g++;
9 int foo (void)
11 bar ();
12 return g;
15 int foo2 (void)
17 bar();
18 return g + 1;
21 /* { dg-final { scan-tree-dump-times "bar" 5 "optimized" } } */