bolt/deps/llvm-18.1.8/llvm/test/CodeGen/MIR/Generic/machine-function-missing-body.mir
2025-02-14 19:21:04 +01:00

15 lines
277 B
YAML

# 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
...