Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame^] | 1 | ; RUN: llvm-upgrade < %s | llvm-as -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 |
| 5 | ; collisions could occur that would cause the following error message to be |
| 6 | ; produced: |
| 7 | ; |
| 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 | |
| 16 | declare int "xxx"(int * %X) |
| 17 | |
| 18 | implementation |
| 19 | |