Fix PR48484
[official-gcc.git] / gcc / testsuite / g++.dg / lto / 20090303_0.C
blob36c8588bb552e293fc93ec0ea458858f7e150212
1 /* { dg-lto-do run } */
2 /* { dg-lto-options {{-flto -flto-partition=1to1 -fPIC}} } */
3 /* { dg-lto-options {{-flto -flto-partition=1to1}} { target sparc*-*-* } } */
4 /* { dg-suppress-ld-options {-fPIC} }  */
5 void foobar(int *, int* __x)    ;
6 int test_ints[30];
7 int j;
9 void foobar (int *x, int *y)
11   *x = *y = 0;
14 void Test() {
15  int int_set_;
16  foobar (&int_set_, &test_ints[j]);
18 main()
20   Test();
21   return 0;