xref: /llvm-project/llvm/test/CodeGen/MIR/Generic/machine-function-missing-function.mir (revision 20dd36a48a76bb4227e19ad5da26066db5a466fa)
1*538859ccSMatthias Braun# RUN: not llc -run-pass none -o /dev/null %s 2>&1 | FileCheck %s
263c3989fSMehdi Amini# This test ensures that an error is reported when the mir file has LLVM IR and
363c3989fSMehdi Amini# one of the machine functions has a name that doesn't match any function in
463c3989fSMehdi Amini# the LLVM IR.
563c3989fSMehdi Amini
663c3989fSMehdi Amini--- |
763c3989fSMehdi Amini
863c3989fSMehdi Amini  define i32 @foo() {
963c3989fSMehdi Amini    ret i32 0
1063c3989fSMehdi Amini  }
1163c3989fSMehdi Amini
1263c3989fSMehdi Amini...
1363c3989fSMehdi Amini---
1463c3989fSMehdi Amininame:            foo
1563c3989fSMehdi Amini...
1663c3989fSMehdi Amini---
1763c3989fSMehdi Amini# CHECK: function 'faa' isn't defined in the provided LLVM IR
1863c3989fSMehdi Amininame:            faa
1963c3989fSMehdi Amini...
20