OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [ipa/] [iinline-1.c] - Blame information for rev 298

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* Verify that simple indirect calls are inlined even without early
2
   inlining..  */
3
/* { dg-do compile } */
4
/* { dg-options "-O3 -c -fdump-ipa-inline -fno-early-inlining"  } */
5
 
6
extern void non_existent(int);
7
 
8
static void hooray ()
9
{
10
  non_existent (1);
11
}
12
 
13
static void hiphip (void (*f)())
14
{
15
  non_existent (2);
16
  f ();
17
}
18
 
19
int main (int argc, int *argv[])
20
{
21
  hiphip (hooray);
22
  return 0;
23
}
24
 
25
/* { dg-final { scan-ipa-dump "hooray\[^\\n\]*inline copy in main"  "inline"  } } */
26
/* { dg-final { cleanup-ipa-dump "inline" } } */

powered by: WebSVN 2.1.0

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