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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [lto/] [20081201-1_0.c] - Blame information for rev 774

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

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-lto-options {{-O2 -DOPTIMIZE -flto -flto-partition=1to1} {-O0 -flto -flto-partition=1to1}} } */
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.