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
This commit is contained in:
Mark Mitchell 1999-12-07 07:38:21 +00:00
parent 601bf25120
commit 2fb9811eac

View File

@ -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;
}