xref: /llvm-project/llvm/test/CodeGen/MIR/Generic/machine-function-missing-body.mir (revision 20dd36a48a76bb4227e19ad5da26066db5a466fa)
1# RUN: llc -run-pass none -o - %s | FileCheck %s
2# This test ensures that the MIR parser accepts files with llvm IR but
3# no machine function body.
4
5--- |
6  ; CHECK: define i32 @foo()
7  define i32 @foo() {
8    ret i32 0
9  }
10
11...
12---
13# CHECK: name: foo
14name:            foo
15...
16