new testcase for PR635
authorChris Lattner <sabre@nondot.org>
Mon, 3 Oct 2005 23:42:54 +0000 (23:42 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 3 Oct 2005 23:42:54 +0000 (23:42 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23615 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/SimplifyCFG/2005-10-02-InvokeSimplify.ll [new file with mode: 0644]

diff --git a/test/Transforms/SimplifyCFG/2005-10-02-InvokeSimplify.ll b/test/Transforms/SimplifyCFG/2005-10-02-InvokeSimplify.ll
new file mode 100644 (file)
index 0000000..3a29cb8
--- /dev/null
@@ -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
+}