llvm-project/lld/test/LinkerScript/missing-input-file-name.test

26 lines
510 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
*/
SECTIONS {
.text : { ()}
/*
CHECK-ERR: [[@LINE-2]]:15: error: expected symbol assignment or input file name.
CHECK-ERR-NEXT: {{^ \.text : { \(\)}}}
CHECK-ERR-NEXT: {{^ \^}}
*/
}
/*
CHECK: kw_sections: SECTIONS
CHECK: l_brace: {
CHECK: identifier: .text
CHECK: colon: :
CHECK: l_brace: {
CHECK: l_paren: (
CHECK: r_paren: )
CHECK: r_brace: }
CHECK: r_brace: }
CHECK: eof:
*/