aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/MIR/Generic/function-missing-machine-function.mir
blob: 71b5b28453405ecb5ee2be9830e2860749edbd99 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
# RUN: not llc -start-after branch-folder -stop-after branch-folder -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
  }

...