repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge from mainline (gomp-merge-2005-02-26).
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.other
/
local-alloc1.C
blob
58fef68fb1f8c4f164df0bfe636e161807b12ca7
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
}