]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.dg/inline-39.c
Update copyright years.
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / inline-39.c
CommitLineData
69e6205f 1/* { dg-do compile } */
2ad97a1e 2/* { dg-options "-O2 -fdump-tree-optimized -fdisable-tree-einline=foo2 -fdisable-ipa-inline -Wno-attributes" } */
1d805a56 3/* { dg-add-options bind_pic_locally } */
bb5b1f5e
XDL
4int g;
5__attribute__((always_inline)) void bar (void)
6{
7 g++;
8}
9
10int foo (void)
11{
12 bar ();
13 return g;
14}
15
16int foo2 (void)
17{
18 bar();
19 return g + 1;
20}
21
22/* { dg-final { scan-tree-dump-times "bar" 4 "optimized" } } */