aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/ADCE
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-05-04 17:00:10 +0000
committerChris Lattner <sabre@nondot.org>2004-05-04 17:00:10 +0000
commitb71ebdf03c096ec05b9c963f876ebc262ef25278 (patch)
tree9c139dc38acadebc709a776fb0d7498fe8de1335 /test/Transforms/ADCE
parentdc0bedcd250a39e224b6c4ee317ddd65f234fb08 (diff)
downloadexternal_llvm-b71ebdf03c096ec05b9c963f876ebc262ef25278.zip
external_llvm-b71ebdf03c096ec05b9c963f876ebc262ef25278.tar.gz
external_llvm-b71ebdf03c096ec05b9c963f876ebc262ef25278.tar.bz2
New testcase for PR332
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13348 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/ADCE')
-rw-r--r--test/Transforms/ADCE/2004-05-04-UnreachableBlock.llx16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/Transforms/ADCE/2004-05-04-UnreachableBlock.llx b/test/Transforms/ADCE/2004-05-04-UnreachableBlock.llx
new file mode 100644
index 0000000..b08fdfe
--- /dev/null
+++ b/test/Transforms/ADCE/2004-05-04-UnreachableBlock.llx
@@ -0,0 +1,16 @@
+; RUN: llvm-as < %s | opt -adce -disable-output
+
+void %test() {
+entry:
+ br label %UnifiedReturnBlock
+
+UnifiedReturnBlock:
+ ret void
+
+invoke_catch.0: ; No predecessors!
+ br bool false, label %UnifiedUnwindBlock, label %UnifiedReturnBlock
+
+UnifiedUnwindBlock: ; preds = %invoke_catch.0
+ unwind
+
+}