summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/MIR/Generic/machine-function-missing-body.mir
blob: 0fd970c3af7cc5c3e4de099c85c4a5c3e14c56ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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
...
OpenPOWER on IntegriCloud