llvm-project/llvm/test/CodeGen/MIR/Generic/function-missing-machine-fu...

14 lines
328 B
YAML

# RUN: not llc -run-pass none -o /dev/null %s 2>&1 | FileCheck %s
# This test verifies that an error is reported when a MIR file has some
# function but is missing a corresponding machine function.
# CHECK: no machine function information for function 'foo' in the MIR file
--- |
define i32 @foo() {
ret i32 0
}
...