aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/tree-prof/lipo/lipo_inline1_0.c
blob: d48080981d33da893ce231fef37198df15b933ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/* { dg-options "-O2 -fdump-tree-optimized-details-blocks -fdump-ipa-inline-details -fopt-info" } */

extern int foo (void);
extern int goo (void);


int bar (void)
{
  return 2;
}

int g;
int main ()
{
   int s = 0, i;

   for (i = 0; i < 1000; i ++)
    {
     s += foo();  /* Should be inlined */
     s += goo();  /* Should be inlined */
    }

   g = s;
   return 0;
}

/* { dg-final-use { scan-tree-dump-not "foo" "optimized"} } */
/* { dg-final-use { scan-tree-dump-not "goo" "optimized"} } */
/* { dg-final-use { cleanup-tree-dump "optimized" } } */