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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [lto/] [20081115_0.c] - Blame information for rev 826

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* { dg-lto-options {{-O2 -DOPTIMIZE -fwhopr} {-O0 -fwhopr}} } */
2
 
3
extern void abort (void);
4
 
5
int f (void)
6
{
7
  return 1;
8
}
9
 
10
extern inline int
11
e_inline_baz (void)
12
{
13
  return 1 + f();
14
}
15
 
16
int
17
bar (void)
18
{
19
  return e_inline_baz ();
20
}
21
 
22
main ()
23
{
24
#ifdef OPTIMIZE
25
  if (bar () != 2 || foo () != 3)
26
    abort ();
27
#else
28
  if (bar () != 0 || foo () != 0)
29
    abort ();
30
#endif
31
  return 0;
32
}

powered by: WebSVN 2.1.0

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