summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/lto/20091209-1_0.c
blob: 5aa2fe0b058abb752954f2f055f226d26aa597ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* Stream an indirect edge in and out.  */

/* { dg-lto-do link } */
/* { dg-lto-options {{ -O3 -fno-early-inlining -flto }} } */

volatile int something;

static void hooray ()
{
  something = 1;
}

static void hiphip (void (*f)())
{
  something = 2;
  f ();
}

int main (int argc, int *argv[])
{
  hiphip (hooray);
  return 0;
}