llvm.org GIT mirror llvm / release_37 test / CodeGen / MIR / machine-function-missing-function.mir
release_37

Tree @release_37 (Download .tar.gz)

machine-function-missing-function.mir @release_37raw · history · blame

# RUN: not llc -start-after branch-folder -stop-after branch-folder -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:
  - id: 0
...
---
# CHECK: function 'faa' isn't defined in the provided LLVM IR
name:            faa
body:
  - id: 0
...