port test fix r175242 from trunk -- it was not merged properly to google/main
[official-gcc.git] / main / gcc / testsuite / gcc.dg / inline_4.c
blobdd4fadb48874ce2fdf05129e6e19ccdd4115f04a
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-optimized -fdisable-tree-einline=foo2 -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" 4 "optimized" } } */
22 /* { dg-final { cleanup-tree-dump "optimized" } } */