New testcase for PR332
authorChris Lattner <sabre@nondot.org>
Tue, 4 May 2004 17:00:10 +0000 (17:00 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 4 May 2004 17:00:10 +0000 (17:00 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13348 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/ADCE/2004-05-04-UnreachableBlock.llx [new file with mode: 0644]

diff --git a/test/Transforms/ADCE/2004-05-04-UnreachableBlock.llx b/test/Transforms/ADCE/2004-05-04-UnreachableBlock.llx
new file mode 100644 (file)
index 0000000..b08fdfe
--- /dev/null
@@ -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
+
+}