llvm-project/lld/test/LinkerScript/missing-output-section-name...

26 lines
498 B
Plaintext

/*
RUN: linker-script-test %s 2> %t | FileCheck %s
RUN: FileCheck -input-file %t -check-prefix=CHECK-ERR %s
*/
SECTIONS {
: { *()}
/*
CHECK-ERR: [[@LINE-2]]:5: error: expected symbol assignment, entry, overlay or output section name
CHECK-ERR-NEXT: {{^ : { \*\(\)}}}
CHECK-ERR-NEXT: {{^ \^}}
*/
}
/*
CHECK: kw_sections: SECTIONS
CHECK: l_brace: {
CHECK: colon: :
CHECK: l_brace: {
CHECK: star: *
CHECK: l_paren: (
CHECK: r_paren: )
CHECK: r_brace: }
CHECK: r_brace: }
CHECK: eof:
*/