Files
clang-p2996/lld/test/LinkerScript/memory-empty.test
Meador Inge 2ce1ea86d0 LinkerScript: Add parsing of the MEMORY command
This patch implements parsing of the GNU ld MEMORY command [1].
The command and the memory block definitions are parsed as
specified (including the slightly strange "o" and "l" keywords).
Evaluation will be added at a later point in time.

[1] https://sourceware.org/binutils/docs-2.25/ld/MEMORY.html

llvm-svn: 231928
2015-03-11 15:34:44 +00:00

18 lines
174 B
Plaintext

/*
RUN: linker-script-test %s | FileCheck %s
*/
MEMORY
{
}
/*
CHECK: kw_memory: MEMORY
CHECK: l_brace: {
CHECK: r_brace: }
CHECK: eof:
CHECK: MEMORY
CHECK: {
CHECK: }
*/