gcc/testsuite/
[official-gcc.git] / gcc-4_9-branch / gcc / testsuite / gcc.dg / inline_4.c
blobebd57e980fd122a3e9e064edd8a05ff95d9f56ef
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-optimized -fdisable-tree-einline=foo2 -fdisable-ipa-inline -Wno-attributes" } */
3 /* { dg-add-options bind_pic_locally } */
4 int g;
5 __attribute__((always_inline)) void bar (void)
7 g++;
10 int foo (void)
12 bar ();
13 return g;
16 int foo2 (void)
18 bar();
19 return g + 1;
22 /* { dg-final { scan-tree-dump-times "bar" 4 "optimized" } } */
23 /* { dg-final { cleanup-tree-dump "optimized" } } */