diff --git a/llvm/test/Regression/Transforms/CorrelatedExprs/2002-10-07-NoImmediateDominator.ll b/llvm/test/Regression/Transforms/CorrelatedExprs/2002-10-07-NoImmediateDominator.ll new file mode 100644 index 000000000000..ebf094e8c34c --- /dev/null +++ b/llvm/test/Regression/Transforms/CorrelatedExprs/2002-10-07-NoImmediateDominator.ll @@ -0,0 +1,17 @@ +; RUN: as < %s | opt -cee +; +; This testcase causes an assertion error. +; +implementation ; Functions: + +void %test(int %A) { + br label %bb2 +bb2: + ret void + +bb3: ; No predecessors! + br bool true, label %bb4, label %bb2 + +bb4: + ret void +}