Test that prune-eh doesn't make deductions based
[oota-llvm.git] / test / Transforms / RaiseAllocations / FreeCastConstantExpr.ll
1 ; This situation can occur due to the funcresolve pass.
2 ;
3 ; RUN: llvm-as < %s | opt -raiseallocs | llvm-dis | not grep call
4
5 declare void @free(i8*)
6
7 define void @test(i32* %P) {
8         call void bitcast (void (i8*)* @free to void (i32*)*)( i32* %P )
9         ret void
10 }
11