recursive descent functions into one table driven parser. Add proper error recovery and reporting. Add lots of test cases with semantics errors and verify error messages. llvm-svn: 156136
20 lines
323 B
Plaintext
20 lines
323 B
Plaintext
# RUN: not lld-core %s 2> %t.err
|
|
# RUN: FileCheck < %t.err %s
|
|
|
|
#
|
|
# Test that unknown atom attribute produces a readable error.
|
|
#
|
|
|
|
---
|
|
atoms:
|
|
- name: entry
|
|
scope: hidden
|
|
foobar: true
|
|
dead-strip: never
|
|
|
|
...
|
|
|
|
|
|
# CHECK: error: Unknown atom attribute
|
|
# CHECK: foobar
|