llvm-project/lld/test/LinkerScript/missing-entry-symbol.test

22 lines
390 B
Plaintext

/*
RUN: linker-script-test %s 2> %t | FileCheck %s
RUN: FileCheck -input-file %t -check-prefix=CHECK-ERR %s
*/
SECTIONS {
ENTRY()
/*
CHECK-ERR: [[@LINE-2]]:11: error: expected identifier in ENTRY
CHECK-ERR-NEXT: {{^ ENTRY()}}
CHECK-ERR-NEXT: {{^ \^}}
*/
}
/*
CHECK: l_brace: {
CHECK: kw_entry: ENTRY
CHECK: l_paren: (
CHECK: r_paren: )
CHECK: r_brace: }
CHECK: eof:
*/