blob: 8d0c4bddcfbfe282983a49c6690661992c1d019e [file] [log] [blame]
Reid Spencerd7c2c2f2006-12-02 20:34:08 +00001; RUN: llvm-upgrade < %s | llvm-as -o /dev/null -f
Tanya Lattnere7e3f2e2004-11-06 22:07:09 +00002
Chris Lattner57232c52002-03-08 18:41:11 +00003; Method arguments were being checked for collisions at the global scope before
Reid Spencerd7c2c2f2006-12-02 20:34:08 +00004; the method object was created by the parser. Because of this, false
5; collisions could occur that would cause the following error message to be
6; produced:
Chris Lattner57232c52002-03-08 18:41:11 +00007;
8; Redefinition of value named 'X' in the 'int *' type plane!
9;
10; Fixed by delaying binding of variable names until _after_ the method symtab is
11; created.
12;
13
14%X = global int 4
15
16declare int "xxx"(int * %X)
17
18implementation
19