blob: e74332cbb274f688e2d5ca1dd53c3b933f8cd2f7 [file] [log] [blame]
Tanya Lattner6e9bcee2008-02-14 07:57:12 +00001; RUN: llvm-as < %s -o /dev/null -f
Tanya Lattnere7e3f2e2004-11-06 22:07:09 +00002
Chris Lattner57232c52002-03-08 18:41:11 +00003; Method arguments were being checked for collisions at the global scope before
Tanya Lattner6e9bcee2008-02-14 07:57:12 +00004; the method object was created by the parser. Because of this, false
5; collisions could occur that would cause the following error message to be
Reid Spencerd7c2c2f2006-12-02 20:34:08 +00006; produced:
Chris Lattner57232c52002-03-08 18:41:11 +00007;
8; Redefinition of value named 'X' in the 'int *' type plane!
9;
10; Fixed by delaying binding of variable names until _after_ the method symtab is
11; created.
12;
Tanya Lattner6e9bcee2008-02-14 07:57:12 +000013@X = global i32 4 ; <i32*> [#uses=0]
Chris Lattner57232c52002-03-08 18:41:11 +000014
Tanya Lattner6e9bcee2008-02-14 07:57:12 +000015declare i32 @xxx(i32*)