repo.or.cz
/
llvm-complete.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[MIParser] Set RegClassOrRegBank during instruction parsing
[llvm-complete.git]
/
test
/
CodeGen
/
MIR
/
Generic
/
machine-function-missing-name.mir
blob
bc279a6ecfdc7cd4ef6c99f3445d52d5a3abe16c
1
# RUN: not llc -run-pass none -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
...
20
---
21
name: bar
22
...