Fix global variable code to correctly handle extern declarations.

When we have an "extern" global, now we no longer inadvertently define
storage for it.  Further, we now successfully do define storage when we
encounter a definition following one or more extern declarations.

Issues #215 and #217.
This commit is contained in:
Matt Pharr
2012-03-28 14:15:49 -07:00
parent 540fc6c2f3
commit 5b2d43f665
6 changed files with 101 additions and 32 deletions

View File

@@ -0,0 +1,4 @@
// Definition of variable "foo" conflicts with definition at
int foo;
float foo;