Use %prcontext, $prcontext is not resolving for some reason.
[oota-llvm.git] / test / Transforms / TailCallElim / move_alloca_for_tail_call.ll
1 ; RUN: llvm-upgrade < %s | llvm-as | opt -tailcallelim | llvm-dis | \
2 ; RUN:    %prcontext alloca 1 | grep {i32 @foo}
3
4 declare void %bar(int*)
5 int %foo() {
6   %A = alloca int             ;; Should stay in entry block because of 'tail' marker
7   store int 17, int* %A
8   call void %bar(int* %A)
9
10   %X = tail call int %foo()
11   ret int %X
12 }