summaryrefslogtreecommitdiff
path: root/test/CodeGen/MIR/Generic/machine-function-missing-function.mir
blob: c547bb25d75324f8c64af0aba1cc344939082254 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# RUN: not llc -run-pass none -o /dev/null %s 2>&1 | FileCheck %s
# This test ensures that an error is reported when the mir file has LLVM IR and
# one of the machine functions has a name that doesn't match any function in
# the LLVM IR.

--- |

  define i32 @foo() {
    ret i32 0
  }

...
---
name:            foo
body: |
  bb.0:
...
---
# CHECK: function 'faa' isn't defined in the provided LLVM IR
name:            faa
body: |
  bb.0:
...