new testcase for PR635
[oota-llvm.git] / test / Transforms / SimplifyCFG / 2005-10-02-InvokeSimplify.ll
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
+}