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:
4
tests_errors/global-redef-1.ispc
Normal file
4
tests_errors/global-redef-1.ispc
Normal file
@@ -0,0 +1,4 @@
|
||||
// Definition of variable "foo" conflicts with definition at
|
||||
|
||||
int foo;
|
||||
float foo;
|
||||
Reference in New Issue
Block a user