aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/lto/20090210_1.c
blob: 960411972854c780b4d6250f673aa48c3ba1ef0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* { dg-options "-fPIC" { target { ! sparc*-*-* } } } */
static void
f (int n)
{
  int i;
  static int __thread value = 100;
  for (i = 0; i < n; ++i)
    {
      volatile int *p = &value;
      volatile int x __attribute__ ((unused)) = *p;
    }
}


extern int foo (int);

int
main (int argc, char **argv)
{
  f (foo (4) + argc);
  return 0;
}