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] - Rev 774

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

/* 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;
}
 

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

powered by: WebSVN 2.1.0

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