aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/lto/pr60404_0.c
blob: a22216db20780bd317443417041634a86b961b39 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { dg-lto-do run } */
/* { dg-lto-options { { -O1 -flto } } } */
/* { dg-extra-ld-options { -O0 } } */

extern void fn2 (int);
int a[1], b;

int
main ()
{
  fn2 (0);
  if (b != 0 || a[b] != 0)
    __builtin_abort ();
  return 0;
}