mirror of
https://github.com/intel/llvm.git
synced 2026-01-17 14:48:27 +08:00
This patch implements parsing of the GNU ld EXTERN command [1]. Evaluation will be added at a later point in time. [1] https://sourceware.org/binutils/docs/ld/Miscellaneous-Commands.html#Miscellaneous-Commands llvm-svn: 232110
23 lines
408 B
Plaintext
23 lines
408 B
Plaintext
/*
|
|
RUN: linker-script-test %s 2> %t | FileCheck %s
|
|
RUN: FileCheck -input-file %t -check-prefix=CHECK-ERR %s
|
|
*/
|
|
|
|
|
|
EXTERN(a b 3)
|
|
/*
|
|
CHECK-ERR: [[@LINE-2]]:12: error: expected symbol in EXTERN.
|
|
CHECK-ERR-NEXT: {{^EXTERN\(a b 3\)}}
|
|
CHECK-ERR-NEXT: {{^ \^}}
|
|
*/
|
|
|
|
/*
|
|
CHECK: kw_extern: EXTERN
|
|
CHECK: l_paren: (
|
|
CHECK: identifier: a
|
|
CHECK: identifier: b
|
|
CHECK: number: 3
|
|
CHECK: r_paren: )
|
|
CHECK: eof:
|
|
*/
|