[llvm] Do not replace dead constant references in metadata with undef
[llvm-project.git] / lld / test / ELF / linkerscript / broken-memory-declaration.s
blobcb4b50a44b1b07de7e89eca73365f9c68b2034b7
1 # REQUIRES: x86
3 ## Check we do not crash.
5 # RUN: echo "MEMORY { FLASH (rx) : ORIGIN = 0x1000< LENGTH" > %t.script
6 # RUN: not ld.lld -o /dev/null --script %t.script 2>&1 | FileCheck %s
7 # CHECK: unexpected EOF
9 # RUN: echo "MEMORY { FLASH (rx) : ORIGIN = 0x1000< ORIGIN" > %t.script
10 # RUN: not ld.lld -o /dev/null --script %t.script 2>&1 | FileCheck %s
12 # RUN: echo "MEMORY { FLASH (rx) : ORIGIN = 0x1000, LENGTH = CONSTANT" > %t.script
13 # RUN: not ld.lld -o /dev/null --script %t.script 2>&1 | FileCheck %s