diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2015-03-24 21:31:36 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2015-03-24 21:31:36 +0000 |
commit | fb911942f1434f3d1750f83f25f5e42c80e60638 (patch) | |
tree | 1678c4a4f0182e4029a86d135aa4a1b7d09e3c41 /test/LinkerScript/memory-missing-name.test |
Notes
Diffstat (limited to 'test/LinkerScript/memory-missing-name.test')
-rw-r--r-- | test/LinkerScript/memory-missing-name.test | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/test/LinkerScript/memory-missing-name.test b/test/LinkerScript/memory-missing-name.test new file mode 100644 index 0000000000000..46597d4351d36 --- /dev/null +++ b/test/LinkerScript/memory-missing-name.test @@ -0,0 +1,31 @@ +/* + RUN: linker-script-test %s 2> %t | FileCheck %s + RUN: FileCheck -input-file %t -check-prefix=CHECK-ERR %s +*/ + +MEMORY +{ + (rwx) : ORIGIN = 0x20000000, LENGTH = 128M +/* +CHECK-ERR: [[@LINE-2]]:3: error: expected memory block definition. +CHECK-ERR-NEXT: {{^ \(rwx\) : ORIGIN = 0x20000000, LENGTH = 128M}} +CHECK-ERR-NEXT: {{^ \^}} +*/ +} + +/* +CHECK: kw_memory: MEMORY +CHECK: l_brace: { +CHECK: l_paren: ( +CHECK: r_paren: ) +CHECK: colon: : +CHECK: kw_origin: ORIGIN +CHECK: equal: = +CHECK: number: 0x20000000 +CHECK: comma: , +CHECK: kw_length: LENGTH +CHECK: equal: = +CHECK: number: 128M +CHECK: r_brace: } +CHECK: eof: +*/ |