aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/SimplifyCFG/2005-10-02-InvokeSimplify.ll
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-10-03 23:42:54 +0000
committerChris Lattner <sabre@nondot.org>2005-10-03 23:42:54 +0000
commit457029c244475dd6fb0f4eea1ade2436a2c1fe3c (patch)
tree9f0ab1effd0e63c5bc8adeadc4ca4fa018d97c75 /test/Transforms/SimplifyCFG/2005-10-02-InvokeSimplify.ll
parentcea141f1d1f85997c4c657009994bdacbc3a3dbf (diff)
downloadexternal_llvm-457029c244475dd6fb0f4eea1ade2436a2c1fe3c.zip
external_llvm-457029c244475dd6fb0f4eea1ade2436a2c1fe3c.tar.gz
external_llvm-457029c244475dd6fb0f4eea1ade2436a2c1fe3c.tar.bz2
new testcase for PR635
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23615 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/SimplifyCFG/2005-10-02-InvokeSimplify.ll')
-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 0000000..3a29cb8
--- /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
+}