llvm-project/lld/test/LinkerScript/missing-input-sections.test

28 lines
511 B
Plaintext

/*
RUN: linker-script-test %s 2> %t | FileCheck %s
RUN: FileCheck -input-file %t -check-prefix=CHECK-ERR %s
*/
SECTIONS {
.text : { *(+)}
/*
CHECK-ERR: [[@LINE-2]]:16: error: expected )
CHECK-ERR-NEXT: {{^ \.text : { \*\(\+\)}}}
CHECK-ERR-NEXT: {{^ \^}}
*/
}
/*
CHECK: kw_sections: SECTIONS
CHECK: l_brace: {
CHECK: identifier: .text
CHECK: colon: :
CHECK: l_brace: {
CHECK: star: *
CHECK: l_paren: (
CHECK: plus: +
CHECK: r_paren: )
CHECK: r_brace: }
CHECK: r_brace: }
CHECK: eof:
*/