Chris Lattner | df00605 | 2002-03-08 19:10:09 +0000 | [diff] [blame^] | 1 | ; Another name collision problem. Here the problem was that if a forward |
2 | ; declaration for a method was found, that this would cause spurious conflicts | ||||
3 | ; to be detected between locals and globals. | ||||
4 | ; | ||||
5 | %Var = uninitialized global int | ||||
6 | |||||
7 | declare void "foo"() | ||||
8 | |||||
9 | implementation | ||||
10 | |||||
11 | void "foo"() | ||||
12 | begin | ||||
13 | %Var = alloca int ; Conflict with global var | ||||
14 | ret void | ||||
15 | end | ||||
16 |