For PR780:
[oota-llvm.git] / test / Assembler / 2002-03-08-NameCollision.ll
1 ; RUN: llvm-as < %s -o /dev/null -f
2
3 ; Method arguments were being checked for collisions at the global scope before
4 ; the method object was created by the parser.  Because of this, false collisions
5 ; could occur that would cause the following error message to be produced:
6 ;
7 ;    Redefinition of value named 'X' in the 'int *' type plane!
8 ;
9 ; Fixed by delaying binding of variable names until _after_ the method symtab is
10 ; created.
11 ;
12
13 %X = global int 4
14
15 declare int "xxx"(int * %X)
16
17 implementation
18