blob: d92614170e5b043ff2c35e2f1bfb22ed324622ac [file] [log] [blame]
Tanya Lattnere7e3f2e2004-11-06 22:07:09 +00001; RUN: llvm-as < %s -o /dev/null -f
2
Chris Lattner57232c52002-03-08 18:41:11 +00003; 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
15declare int "xxx"(int * %X)
16
17implementation
18