[PR c++/84702] ICE with default tmpl arg of overload set
[official-gcc.git] / gcc / testsuite / g++.dg / lto / 20090303_0.C
blobd9ec5a35fed43a1c8484f6b80c8c08a2615bd25a
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;
10 void foobar (int *x, int *y)
12   *x = *y = 0;
15 void Test() {
16  int int_set_;
17  foobar (&int_set_, &test_ints[j]);
20 int
21 main()
23   Test();
24   return 0;