Reid Spencer | d7c2c2f | 2006-12-02 20:34:08 +0000 | [diff] [blame] | 1 | ; RUN: llvm-upgrade < %s | llvm-as -o /dev/null -f |
Tanya Lattner | e7e3f2e | 2004-11-06 22:07:09 +0000 | [diff] [blame] | 2 | |
Chris Lattner | df00605 | 2002-03-08 19:10:09 +0000 | [diff] [blame] | 3 | ; Another name collision problem. Here the problem was that if a forward |
| 4 | ; declaration for a method was found, that this would cause spurious conflicts |
| 5 | ; to be detected between locals and globals. |
| 6 | ; |
| 7 | %Var = uninitialized global int |
| 8 | |
| 9 | declare void "foo"() |
| 10 | |
| 11 | implementation |
| 12 | |
| 13 | void "foo"() |
| 14 | begin |
| 15 | %Var = alloca int ; Conflict with global var |
| 16 | ret void |
| 17 | end |
| 18 | |