2012-05-04 07:55:34 +08:00
|
|
|
# RUN: not lld-core %s 2> %t.err
|
|
|
|
# RUN: FileCheck < %t.err %s
|
|
|
|
|
|
|
|
#
|
|
|
|
# Test that a defined attribute on an undefined atom produces a readable error.
|
|
|
|
#
|
|
|
|
|
|
|
|
---
|
2013-01-05 10:22:35 +08:00
|
|
|
undefined-atoms:
|
2012-05-04 07:55:34 +08:00
|
|
|
- name: foo
|
|
|
|
type: code
|
|
|
|
|
|
|
|
...
|
|
|
|
|
|
|
|
|
2013-01-05 10:22:35 +08:00
|
|
|
# CHECK: error: unknown key 'type'
|
2012-05-04 07:55:34 +08:00
|
|
|
|