summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/SimplifyCFG/2003-08-05-InvokeCrash.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/Transforms/SimplifyCFG/2003-08-05-InvokeCrash.ll')
-rw-r--r--llvm/test/Transforms/SimplifyCFG/2003-08-05-InvokeCrash.ll11
1 files changed, 11 insertions, 0 deletions
diff --git a/llvm/test/Transforms/SimplifyCFG/2003-08-05-InvokeCrash.ll b/llvm/test/Transforms/SimplifyCFG/2003-08-05-InvokeCrash.ll
new file mode 100644
index 00000000000..811fe50b4c7
--- /dev/null
+++ b/llvm/test/Transforms/SimplifyCFG/2003-08-05-InvokeCrash.ll
@@ -0,0 +1,11 @@
+; Do not remove the invoke!
+;
+; RUN: llvm-upgrade < %s | llvm-as | opt -simplifycfg -disable-output
+
+int %test() {
+ %A = invoke int %test() to label %Ret except label %Ret2
+Ret:
+ ret int %A
+Ret2:
+ ret int undef
+}
OpenPOWER on IntegriCloud