aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/tree-prof/lipo/lipo_inline1_1.c
blob: 9725ca769b8d1e027b53dc72b737bb9734032d27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
extern int bar(void);
extern int blah(void);
int foo (void)
{
  int i, s = 0;

  for (i = 0; i < 2; i++)
   {
     s += bar();  /* Inlined */
     s += blah(); /* Inlined */
   }
   return s;
}

int goo (void)
{
 return 10;
}

/* { dg-final-use { scan-tree-dump-not "bar" "optimized"} } */
/* { dg-final-use { scan-tree-dump-not "blah" "optimized"} } */
/* { dg-final-use { cleanup-tree-dump "optimized" } } */