OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [lto/] [20091209-1_0.c] - Blame information for rev 774

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
/* Stream an indirect edge in and out.  */
2
 
3
/* { dg-lto-do link } */
4
/* { dg-lto-options {{ -O3 -fno-early-inlining -flto }} } */
5
 
6
volatile int something;
7
 
8
static void hooray ()
9
{
10
  something = 1;
11
}
12
 
13
static void hiphip (void (*f)())
14
{
15
  something = 2;
16
  f ();
17
}
18
 
19
int main (int argc, int *argv[])
20
{
21
  hiphip (hooray);
22
  return 0;
23
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.