aboutsummaryrefslogtreecommitdiff
path: root/lld/test/ELF/linkerscript/broken-memory-declaration.s
blob: cb4b50a44b1b07de7e89eca73365f9c68b2034b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# REQUIRES: x86

## Check we do not crash.

# RUN: echo "MEMORY { FLASH (rx) : ORIGIN = 0x1000< LENGTH" > %t.script
# RUN: not ld.lld -o /dev/null --script %t.script 2>&1 | FileCheck %s
# CHECK: unexpected EOF

# RUN: echo "MEMORY { FLASH (rx) : ORIGIN = 0x1000< ORIGIN" > %t.script
# RUN: not ld.lld -o /dev/null --script %t.script 2>&1 | FileCheck %s

# RUN: echo "MEMORY { FLASH (rx) : ORIGIN = 0x1000, LENGTH = CONSTANT" > %t.script
# RUN: not ld.lld -o /dev/null --script %t.script 2>&1 | FileCheck %s