blob: 4b9555e4a00e6bb38244fea8b737296198524b64 [file] [log] [blame]
; Check that verification doesn't fail when reducing a function with
; unreachable blocks.
;
; RUN: llvm-reduce --abort-on-invalid-reduction --delta-passes=basic-blocks --test FileCheck --test-arg --check-prefixes=CHECK-INTERESTINGNESS --test-arg %s --test-arg --input-file %s -o %t
; RUN: FileCheck %s < %t
; CHECK-INTERESTINGNESS: test
; CHECK: define void @test() {
; CHECK-NEXT: unreachable:
; CHECK-NEXT: ret void
define void @test() {
entry:
br label %exit
unreachable: ; No predecessors!
br label %exit
exit:
ret void
}