diff options
| -rw-r--r-- | lld/test/ELF/linkerscript/sort.s | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lld/test/ELF/linkerscript/sort.s b/lld/test/ELF/linkerscript/sort.s index 6390ced1228..abee4683287 100644 --- a/lld/test/ELF/linkerscript/sort.s +++ b/lld/test/ELF/linkerscript/sort.s @@ -95,6 +95,11 @@ # RUN: ld.lld -o %t11 --script %t10.script %t2.o %t1.o # RUN: llvm-objdump -s %t11 | FileCheck -check-prefix=SORTED_A %s +## There is no SORTFOO command, check we handle it properly. +# RUN: echo "SECTIONS { .aaa : { SORTFOO } }" > %t3.script +# RUN: not ld.lld -o %t3 --script %t3.script %t1.o 2>&1 | FileCheck %s -check-prefix=SORTFOO +# SORTFOO: unknown command SORTFOO + .global _start _start: nop |

