OSDN Git Service

* lib/obj-c++.exp (obj-c++_target_compile): Declare global variable,
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.other / local-alloc1.C
1 // { dg-do assemble  }
2 // { dg-options "-O0 -fpic" }
3 // Origin: Jakub Jelinek <jakub@redhat.com>
4 // { dg-skip-if "No -fpic" { cris-*-elf* cris-*-aout* mmix-*-* } { "*" } { "" } }
5
6 struct bar {
7   bar() {}
8   double x[3];
9 };
10
11 static bar y[4];
12
13 void foo(int z)
14 {
15   bar w;
16   y[z] = w;
17 }