2009-08-25 15:38:29 +00:00
|
|
|
; RUN: llvm-as %s -o /dev/null
|
2014-08-19 21:08:27 +00:00
|
|
|
; RUN: verify-uselistorder %s
|
2004-11-06 22:07:09 +00:00
|
|
|
|
2002-03-08 18:41:11 +00:00
|
|
|
; Method arguments were being checked for collisions at the global scope before
|
2008-02-14 07:57:12 +00:00
|
|
|
; the method object was created by the parser. Because of this, false
|
|
|
|
; collisions could occur that would cause the following error message to be
|
2006-12-02 20:34:08 +00:00
|
|
|
; produced:
|
2002-03-08 18:41:11 +00:00
|
|
|
;
|
|
|
|
; Redefinition of value named 'X' in the 'int *' type plane!
|
|
|
|
;
|
|
|
|
; Fixed by delaying binding of variable names until _after_ the method symtab is
|
|
|
|
; created.
|
|
|
|
;
|
2008-02-14 07:57:12 +00:00
|
|
|
@X = global i32 4 ; <i32*> [#uses=0]
|
2002-03-08 18:41:11 +00:00
|
|
|
|
2008-02-14 07:57:12 +00:00
|
|
|
declare i32 @xxx(i32*)
|