llvm-project/llvm/test/Transforms/BlockExtractor/invalid-function.ll

10 lines
181 B
LLVM

; RUN: echo 'foo bb' > %t
; RUN: not --crash opt -S -extract-blocks -extract-blocks-file=%t %s 2>&1 | FileCheck %s
; CHECK: Invalid function
define void @bar() {
bb:
ret void
}