llvm-project/lld/test/LinkerScript/missing-symbol.test

25 lines
493 B
Plaintext

/*
RUN: linker-script-test %s 2> %t | FileCheck %s
RUN: FileCheck -input-file %t -check-prefix=CHECK-ERR %s
*/
SECTIONS {
= foo + bar;
/*
CHECK-ERR: [[@LINE-2]]:5: error: expected symbol assignment, entry, overlay or output section name.
CHECK-ERR-NEXT: {{^ = foo \+ bar;}}
CHECK-ERR-NEXT: {{^ \^}}
*/
}
/*
CHECK: kw_sections: SECTIONS
CHECK: l_brace: {
CHECK: equal: =
CHECK: identifier: foo
CHECK: plus: +
CHECK: identifier: bar
CHECK: semicolon: ;
CHECK: r_brace: }
CHECK: eof:
*/