1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-22 12:33:33 +02:00
llvm-mirror/test/Assembler/2002-03-08-NameCollision.ll

20 lines
520 B
LLVM
Raw Normal View History

; RUN: llvm-upgrade < %s | llvm-as -o /dev/null -f
2004-11-06 23:07:09 +01:00
2002-03-08 19:41:11 +01:00
; Method arguments were being checked for collisions at the global scope before
; the method object was created by the parser. Because of this, false
; collisions could occur that would cause the following error message to be
; produced:
2002-03-08 19:41:11 +01: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.
;
%X = global int 4
declare int "xxx"(int * %X)
implementation