aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/lto/20081201-2_0.c
blob: fd021eb1cd15cd9984e3f091dc2725c0278e9b8f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* { dg-lto-options {{-O3 -flto -flto-partition=1to1}} } */

/* 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);
}