aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/Transforms/SimplifyCFG/2005-10-02-InvokeSimplify.ll13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/Transforms/SimplifyCFG/2005-10-02-InvokeSimplify.ll b/test/Transforms/SimplifyCFG/2005-10-02-InvokeSimplify.ll
new file mode 100644
index 0000000000..3a29cb8318
--- /dev/null
+++ b/test/Transforms/SimplifyCFG/2005-10-02-InvokeSimplify.ll
@@ -0,0 +1,13 @@
+; RUN: llvm-as < %s | opt -simplifycfg -disable-output
+
+bool %foo() {
+ %X = invoke bool %foo() to label %N unwind label %F
+F:
+ ret bool false
+N:
+ br bool %X, label %A, label %B
+A:
+ ret bool true
+B:
+ ret bool true
+}