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 | ; 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 |