summaryrefslogtreecommitdiff
path: root/test/Transforms/InstCombine/2003-10-29-CallSiteResolve.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Transforms/InstCombine/2003-10-29-CallSiteResolve.ll')
-rw-r--r--test/Transforms/InstCombine/2003-10-29-CallSiteResolve.ll15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/2003-10-29-CallSiteResolve.ll b/test/Transforms/InstCombine/2003-10-29-CallSiteResolve.ll
new file mode 100644
index 000000000000..7d219cb35885
--- /dev/null
+++ b/test/Transforms/InstCombine/2003-10-29-CallSiteResolve.ll
@@ -0,0 +1,15 @@
+; RUN: llvm-as < %s | opt -instcombine -disable-output
+
+declare i32* @bar()
+
+define float* @foo() {
+ %tmp.11 = invoke float* bitcast (i32* ()* @bar to float* ()*)( )
+ to label %invoke_cont unwind label %X ; <float*> [#uses=1]
+
+invoke_cont: ; preds = %0
+ ret float* %tmp.11
+
+X: ; preds = %0
+ ret float* null
+}
+