diff options
author | Rui Ueyama <ruiu@google.com> | 2017-04-12 23:16:33 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2017-04-12 23:16:33 +0000 |
commit | e9c9edf67b05fb7d6981a68b6f3bd51e959a8247 (patch) | |
tree | f1add8993faa1656f4d61d8fda1241582c600e3b | |
parent | 732baa4d0399d1a7477f180555266752964d3d64 (diff) | |
download | bcm5719-llvm-e9c9edf67b05fb7d6981a68b6f3bd51e959a8247.tar.gz bcm5719-llvm-e9c9edf67b05fb7d6981a68b6f3bd51e959a8247.zip |
Make intentional typos look more obvious.
We do not check for similarities when handling unknown tokens in
linker scripts, so "ORIGI" and "LENTH" are not good tokens as a test
for unknown tokens, as I was tempted to "fix" them.
llvm-svn: 300130
-rw-r--r-- | lld/test/ELF/linkerscript/memory.s | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lld/test/ELF/linkerscript/memory.s b/lld/test/ELF/linkerscript/memory.s index cbd38eaee73..1b7562aca14 100644 --- a/lld/test/ELF/linkerscript/memory.s +++ b/lld/test/ELF/linkerscript/memory.s @@ -48,14 +48,14 @@ ## Check bad `ORIGIN`. -# RUN: echo "MEMORY { ram (rwx) : ORIGI = 0x8000, LENGTH = 256K } }" > %t.script +# RUN: echo "MEMORY { ram (rwx) : XYZ = 0x8000 } }" > %t.script # RUN: not ld.lld -o %t2 --script %t.script %t 2>&1 \ # RUN: | FileCheck -check-prefix=ERR1 %s # ERR1: {{.*}}.script:1: expected one of: ORIGIN, org, or o ## Check bad `LENGTH`. -# RUN: echo "MEMORY { ram (rwx) : ORIGIN = 0x8000, LENTH = 256K } }" > %t.script +# RUN: echo "MEMORY { ram (rwx) : ORIGIN = 0x8000, XYZ = 256K } }" > %t.script # RUN: not ld.lld -o %t2 --script %t.script %t 2>&1 \ # RUN: | FileCheck -check-prefix=ERR2 %s # ERR2: {{.*}}.script:1: expected one of: LENGTH, len, or l |