llvm-project/lld/test/LinkerScript/incomplete-ternary.test

26 lines
487 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]]:18: error: expected :
CHECK-ERR-NEXT: {{^ \. = foo \? bar;}}
CHECK-ERR-NEXT: {{^ \^}}
*/
}
/*
CHECK: kw_sections: SECTIONS
CHECK: l_brace: {
CHECK: identifier: .
CHECK: equal: =
CHECK: identifier: foo
CHECK: question: ?
CHECK: identifier: bar
CHECK: semicolon: ;
CHECK: r_brace: }
CHECK: eof:
*/