llvm-project/lld/test/LinkerScript/extern-empty.test

20 lines
344 B
Plaintext
Raw Normal View History

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