rt_gccstream/gcc/testsuite/gcc.dg/lto/20081201-2_0.c

17 lines
246 B
C

/* { dg-lto-options {{-O3 -fwhopr}} } */
/* Test that cross-TU inlining works. */
extern void abort ();
extern void exit (int);
extern void *foo (void);
int
main ()
{
if (foo () != __builtin_return_address (0))
abort ();
exit (0);
}