blob: 539dfd671988729d515a12d9383748d6e85b6e1b [file] [log] [blame]
Gabor Greifafb4e8c2008-05-20 22:07:21 +00001; RUN: llvm-as %s -o /dev/null -f
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002
3; Method arguments were being checked for collisions at the global scope before
Tanya Lattner74bb9f52008-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
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006; produced:
7;
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 Lattner74bb9f52008-02-14 07:57:12 +000013@X = global i32 4 ; <i32*> [#uses=0]
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014
Tanya Lattner74bb9f52008-02-14 07:57:12 +000015declare i32 @xxx(i32*)