Merge from mainline (gomp-merge-2005-02-26).
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / local-alloc1.C
blob58fef68fb1f8c4f164df0bfe636e161807b12ca7
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-*-* } { "*" } { "" } }
6 struct bar {
7   bar() {}
8   double x[3];
9 };
11 static bar y[4];
13 void foo(int z)
15   bar w;
16   y[z] = w;