llvm-project/lld/test/LinkerScript/extern-bad-symbol.test

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:
*/