diff options
Diffstat (limited to 'test/Transforms/InstCombine/2003-11-13-ConstExprCastCall.ll')
-rw-r--r-- | test/Transforms/InstCombine/2003-11-13-ConstExprCastCall.ll | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/2003-11-13-ConstExprCastCall.ll b/test/Transforms/InstCombine/2003-11-13-ConstExprCastCall.ll new file mode 100644 index 000000000000..b6930b5a65fd --- /dev/null +++ b/test/Transforms/InstCombine/2003-11-13-ConstExprCastCall.ll @@ -0,0 +1,8 @@ +; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep call | notcast + +declare void @free(i8*) + +define void @test(i32* %X) { + call void (...)* bitcast (void (i8*)* @free to void (...)*)( i32* %X ) ; <i32>:1 [#uses=0] + ret void +} |