blob: 089d3fb2864b0bbcbf1f3c386bdb504888881998 [file] [log] [blame]
Dan Gohman0d4bbf22009-08-25 15:38:29 +00001; RUN: llvm-as %s -o /dev/null
Duncan P. N. Exon Smithc8eccd12014-08-19 21:08:27 +00002; RUN: verify-uselistorder %s
Tanya Lattner32f81a52004-11-06 22:07:09 +00003
Chris Lattnerfcf6ccd2002-03-08 18:41:11 +00004; Method arguments were being checked for collisions at the global scope before
Tanya Lattner5429dbf2008-02-14 07:57:12 +00005; the method object was created by the parser. Because of this, false
6; collisions could occur that would cause the following error message to be
Reid Spencer107b4b72006-12-02 20:34:08 +00007; produced:
Chris Lattnerfcf6ccd2002-03-08 18:41:11 +00008;
9; Redefinition of value named 'X' in the 'int *' type plane!
10;
11; Fixed by delaying binding of variable names until _after_ the method symtab is
12; created.
13;
Tanya Lattner5429dbf2008-02-14 07:57:12 +000014@X = global i32 4 ; <i32*> [#uses=0]
Chris Lattnerfcf6ccd2002-03-08 18:41:11 +000015
Tanya Lattner5429dbf2008-02-14 07:57:12 +000016declare i32 @xxx(i32*)