llvm-project/lld/test/LinkerScript/memory-missing-origin.test

31 lines
541 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
*/
MEMORY
{
ram (rwx) : LENGTH = 128M
/*
CHECK-ERR: [[@LINE-2]]:15: error: expected ORIGIN
CHECK-ERR-NEXT: {{^ ram \(rwx\) : LENGTH = 128M}}
CHECK-ERR-NEXT: {{^ \^}}
*/
}
/*
CHECK: kw_memory: MEMORY
CHECK: l_brace: {
CHECK: identifier: ram
CHECK: l_paren: (
CHECK: identifier: rwx
CHECK: r_paren: )
CHECK: colon: :
CHECK: kw_length: LENGTH
CHECK: equal: =
CHECK: number: 128M
CHECK: r_brace: }
CHECK: eof:
*/