Use the llvm-upgrade program to upgrade llvm assembly.
[oota-llvm.git] / test / Transforms / RaiseAllocations / FreeCastConstantExpr.ll
1 ; This situation can occur due to the funcresolve pass.
2 ;
3 ; RUN: llvm-upgrade < %s | llvm-as | opt -raiseallocs | llvm-dis | not grep call
4
5 declare void %free(sbyte*)
6
7 void %test(int *%P) {
8   call void(int*)* cast (void(sbyte*)* %free to void(int*)*)(int* %P)
9   ret void
10 }