summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/lto/20090303_0.C
blob: 36c8588bb552e293fc93ec0ea458858f7e150212 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* { dg-lto-do run } */
/* { dg-lto-options {{-flto -flto-partition=1to1 -fPIC}} } */
/* { dg-lto-options {{-flto -flto-partition=1to1}} { target sparc*-*-* } } */
/* { dg-suppress-ld-options {-fPIC} }  */
void foobar(int *, int* __x)    ;
int test_ints[30];
int j;

void foobar (int *x, int *y)
{
  *x = *y = 0;
}

void Test() {
 int int_set_;
 foobar (&int_set_, &test_ints[j]);
}
main()
{
  Test();
  return 0;
}