xref: /aosp_15_r20/external/llvm/test/CodeGen/MIR/Generic/function-missing-machine-function.mir (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1# RUN: not llc -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s
2# This test verifies that an error is reported when a MIR file has some
3# function but is missing a corresponding machine function.
4
5# CHECK: no machine function information for function 'foo' in the MIR file
6
7--- |
8
9  define i32 @foo() {
10    ret i32 0
11  }
12
13...
14