1# REQUIRES: x86
2
3## Check we do not crash.
4
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
8
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
11
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
14