2016-07-16 10:24:59 +08:00
|
|
|
# RUN: not llc -run-pass none -o /dev/null %s 2>&1 | FileCheck %s
|
2015-05-29 06:41:12 +08:00
|
|
|
# This test ensures that an error is reported when a machine function doesn't
|
|
|
|
# have a name attribute.
|
|
|
|
|
|
|
|
--- |
|
|
|
|
|
|
|
|
define i32 @foo() {
|
|
|
|
ret i32 0
|
|
|
|
}
|
|
|
|
|
|
|
|
define i32 @bar() {
|
|
|
|
ret i32 0
|
|
|
|
}
|
|
|
|
|
|
|
|
...
|
|
|
|
---
|
2015-06-16 04:30:22 +08:00
|
|
|
# CHECK: [[@LINE+1]]:1: missing required key 'name'
|
2015-05-29 06:41:12 +08:00
|
|
|
nme: foo
|
|
|
|
...
|
|
|
|
---
|
|
|
|
name: bar
|
|
|
|
...
|