Use the llvm-upgrade program to upgrade llvm assembly.
[oota-llvm.git] / test / Transforms / Mem2Reg / 2002-05-01-ShouldNotPromoteThisAlloca.ll
1 ; This input caused the mem2reg pass to die because it was trying to promote
2 ; the %r alloca, even though it is invalid to do so in this case!
3 ;
4 ; RUN: llvm-upgrade < %s | llvm-as | opt -mem2reg
5
6
7 implementation
8
9 void "test"()
10 begin
11         %r = alloca int         ; <int*> [#uses=2]
12         store int 4, int* %r
13         store int* %r, int** null
14         ret void
15 end