1 // { dg-do assemble { target fpic } }
2 // { dg-options "-O0 -fpic" }
3 // { dg-skip-if "requires unsupported run-time relocation" { spu-*-* } { "*" } { "" } }
4 // Origin: Jakub Jelinek <jakub@redhat.com>
5 
6 struct bar {
barbar7   bar() {}
8   double x[3];
9 };
10 
11 static bar y[4];
12 
foo(int z)13 void foo(int z)
14 {
15   bar w;
16   y[z] = w;
17 }
18