OSDN Git Service

gcc/testsuite/
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / lto / 20090303_0.C
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;
8
9 void foobar (int *x, int *y)
10 {
11   *x = *y = 0;
12 }
13
14 void Test() {
15  int int_set_;
16  foobar (&int_set_, &test_ints[j]);
17 }
18 main()
19 {
20   Test();
21   return 0;
22 }
23