New testcase for PR332
[oota-llvm.git] / test / Transforms / ADCE / 2004-05-04-UnreachableBlock.llx
1 ; RUN: llvm-as < %s | opt -adce -disable-output
2
3 void %test() {
4 entry:
5         br label %UnifiedReturnBlock
6
7 UnifiedReturnBlock:
8         ret void
9
10 invoke_catch.0:         ; No predecessors!
11         br bool false, label %UnifiedUnwindBlock, label %UnifiedReturnBlock
12
13 UnifiedUnwindBlock:             ; preds = %invoke_catch.0
14         unwind
15
16 }