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

Subversion Repositories openrisc

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

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
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.