xref: /llvm-project/llvm/test/Transforms/BlockExtractor/invalid-function.ll (revision da02ecb302c1b42a14c59921da0bb78cd647697c)
1cee313d2SEric Christopher; RUN: echo 'foo bb' > %t
2*da02ecb3SRoman Lebedev; RUN: not opt -S -passes=extract-blocks -extract-blocks-file=%t %s 2>&1 | FileCheck %s
3cee313d2SEric Christopher
4cee313d2SEric Christopher; CHECK: Invalid function
5cee313d2SEric Christopherdefine void @bar() {
6cee313d2SEric Christopherbb:
7cee313d2SEric Christopher  ret void
8cee313d2SEric Christopher}
9cee313d2SEric Christopher
10