Move generic MIR tests in their own subdir, requires "native" as well
[oota-llvm.git] / test / CodeGen / MIR / Generic / machine-function-missing-name.mir
1 # RUN: not llc -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s
2 # This test ensures that an error is reported when a machine function doesn't
3 # have a name attribute.
4
5 --- |
6
7   define i32 @foo() {
8     ret i32 0
9   }
10
11   define i32 @bar() {
12     ret i32 0
13   }
14
15 ...
16 ---
17 # CHECK: [[@LINE+1]]:1: missing required key 'name'
18 nme:             foo
19 body:
20   - id: 0
21 ...
22 ---
23 name:            bar
24 body:
25   - id: 0
26 ...