summaryrefslogtreecommitdiffstats
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
commita6e98f2e85a31ff5994881e654cafd91350a8b57 (patch)
treeb32aee04269ab7c5387452b1117a61d25223f1b8
parentb64419ac40e8e03e01a1fd68d40b325660c2b4e3 (diff)
downloadbcm5719-llvm-a6e98f2e85a31ff5994881e654cafd91350a8b57.tar.gz
bcm5719-llvm-a6e98f2e85a31ff5994881e654cafd91350a8b57.zip
new testcase for PR635
llvm-svn: 23615
-rw-r--r--llvm/test/Regression/Transforms/SimplifyCFG/2005-10-02-InvokeSimplify.ll13
1 files changed, 13 insertions, 0 deletions
diff --git a/llvm/test/Regression/Transforms/SimplifyCFG/2005-10-02-InvokeSimplify.ll b/llvm/test/Regression/Transforms/SimplifyCFG/2005-10-02-InvokeSimplify.ll
new file mode 100644
index 00000000000..3a29cb8318b
--- /dev/null
+++ b/llvm/test/Regression/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
+}
OpenPOWER on IntegriCloud