2018-03-01 20:36:01 +08:00
|
|
|
# REQUIRES: x86
|
|
|
|
|
|
|
|
## Check we do not crash.
|
|
|
|
|
|
|
|
# RUN: echo "MEMORY { FLASH (rx) : ORIGIN = 0x1000< LENGTH" > %t.script
|
2020-02-13 13:48:45 +08:00
|
|
|
# RUN: not ld.lld -o /dev/null --script %t.script 2>&1 | FileCheck %s
|
2018-03-01 20:36:01 +08:00
|
|
|
# CHECK: unexpected EOF
|
|
|
|
|
|
|
|
# RUN: echo "MEMORY { FLASH (rx) : ORIGIN = 0x1000< ORIGIN" > %t.script
|
2020-02-13 13:48:45 +08:00
|
|
|
# RUN: not ld.lld -o /dev/null --script %t.script 2>&1 | FileCheck %s
|
2018-03-01 20:36:01 +08:00
|
|
|
|
|
|
|
# RUN: echo "MEMORY { FLASH (rx) : ORIGIN = 0x1000, LENGTH = CONSTANT" > %t.script
|
2020-02-13 13:48:45 +08:00
|
|
|
# RUN: not ld.lld -o /dev/null --script %t.script 2>&1 | FileCheck %s
|