cd81c03ea19ccf46bee268116a51ea44b1badc0f
[oota-llvm.git] / test / Assembler / 2002-03-08-NameCollision2.ll
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