diff options
-rw-r--r-- | test/Transforms/ADCE/2004-05-04-UnreachableBlock.llx | 16 |
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 0000000000..b08fdfe10a --- /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 + +} |