Debian Codegraph @

gcc/testsuite/g++.dg/lto/20090303_0.C

raw
1 /* { dg-lto-do run } */
2 /* { dg-require-effective-target fpic } */
3 /* { dg-lto-options {{-flto -flto-partition=1to1 -fPIC}} } */
4 /* { dg-lto-options {{-flto -flto-partition=1to1}} { target sparc*-*-* } } */
5 /* { dg-suppress-ld-options {-fPIC} } */
6 void foobar(int *, int* __x) ;
7 int test_ints[30];
8 int j;
9
10 void foobar (int *x, int *y)
11 {
12 *x = *y = 0;
13 }
14
15 void Test() {
16 int int_set_;
17 foobar (&int_set_, &test_ints[j]);
18 }
19
20 int
21 main()
22 {
23 Test();
24 return 0;
25 }
26