diff options
author | Mark Mitchell <mmitchel@gcc.gnu.org> | 1999-12-07 07:38:21 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 1999-12-07 07:38:21 +0000 |
commit | 2fb9811eacce6e68f6a05a63e11bbcb03f7002c5 (patch) | |
tree | 7d6563a996e80a0d556a58daad9be306a341c62c /gcc | |
parent | 601bf25120ceb240c3866ffb3206d9392094b61b (diff) | |
download | gcc-2fb9811eacce6e68f6a05a63e11bbcb03f7002c5.zip gcc-2fb9811eacce6e68f6a05a63e11bbcb03f7002c5.tar.gz gcc-2fb9811eacce6e68f6a05a63e11bbcb03f7002c5.tar.bz2 |
tree.c (walk_tree): Don't recurse into DECL_INITIAL or DECL_SIZE unless...
* tree.c (walk_tree): Don't recurse into DECL_INITIAL or DECL_SIZE
unless we're declaring the variable in question.
From-SVN: r30815
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.other/decl7.C | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.other/decl7.C b/gcc/testsuite/g++.old-deja/g++.other/decl7.C new file mode 100644 index 0000000..7f547f6 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.other/decl7.C @@ -0,0 +1,13 @@ +// Build don't link: +// Origin: Mark Mitchell <mark@codesourcery.com> + +struct S +{ + void* sp; +}; + +void* f () +{ + struct S s = { &s.sp }; + return s.sp; +} |