Files
clang-p2996/lld/test/LinkerScript/extern-empty.test
Meador Inge 748a71b8de LinkerScript: Add parsing of the EXTERN command
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
2015-03-12 21:55:50 +00:00

20 lines
344 B
Plaintext

/*
RUN: linker-script-test %s 2> %t | FileCheck %s
RUN: FileCheck -input-file %t -check-prefix=CHECK-ERR %s
*/
EXTERN()
/*
CHECK-ERR: [[@LINE-2]]:8: error: expected one or more symbols in EXTERN.
CHECK-ERR-NEXT: {{^EXTERN()}}
CHECK-ERR-NEXT: {{^ \^}}
*/
/*
CHECK: kw_extern: EXTERN
CHECK: l_paren: (
CHECK: r_paren: )
CHECK: eof:
*/