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

25 lines
493 B
Plaintext

/*
RUN: linker-script-test %s 2> %t | FileCheck %s
RUN: FileCheck -check-prefix=CHECK-ERR -input-file %t %s
*/
SECTIONS {
. = foo / ;
/*
CHECK-ERR: [[@LINE-2]]:15: error: expected symbol, number, minus, tilde or left parenthesis.
CHECK-ERR-NEXT: {{^ . = foo / ;}}
CHECK-ERR-NEXT: {{^ \^}}
*/
}
/*
CHECK: kw_sections: SECTIONS
CHECK: l_brace: {
CHECK: identifier: .
CHECK: equal: =
CHECK: identifier: foo
CHECK: slash: /
CHECK: semicolon: ;
CHECK: r_brace: }
CHECK: eof:
*/