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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [lto/] [20081118_0.c] - Blame information for rev 298

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

powered by: WebSVN 2.1.0

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