diff options
Diffstat (limited to 'llvm/test/CodeGen/MIR/Generic/machine-function-missing-body.mir')
-rw-r--r-- | llvm/test/CodeGen/MIR/Generic/machine-function-missing-body.mir | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/MIR/Generic/machine-function-missing-body.mir b/llvm/test/CodeGen/MIR/Generic/machine-function-missing-body.mir new file mode 100644 index 00000000000..0fd970c3af7 --- /dev/null +++ b/llvm/test/CodeGen/MIR/Generic/machine-function-missing-body.mir @@ -0,0 +1,15 @@ +# RUN: llc -run-pass none -o - %s | FileCheck %s +# This test ensures that the MIR parser accepts files with llvm IR but +# no machine function body. + +--- | + ; CHECK: define i32 @foo() + define i32 @foo() { + ret i32 0 + } + +... +--- +# CHECK: name: foo +name: foo +... |