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/] [lto/] [20081201-1_0.c] - Blame information for rev 378

Go to most recent revision | 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
6
f (void)
7
{
8
 return 1;
9
}
10
 
11
extern inline int
12
e_inline_baz (void)
13
{
14
 return 1 + f();
15
}
16
 
17
int
18
bar (void)
19
{
20
 return e_inline_baz ();
21
}
22
 
23
main ()
24
{
25
#ifdef OPTIMIZE
26
 if (bar () != 2 || foo () != 3)
27
   abort ();
28
#else
29
 if (bar () != 0 || foo () != 0)
30
   abort ();
31
#endif
32
 return 0;
33
}

powered by: WebSVN 2.1.0

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