diff options
Diffstat (limited to 'test/ELF/linkerscript/diag5.test')
| -rw-r--r-- | test/ELF/linkerscript/diag5.test | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/ELF/linkerscript/diag5.test b/test/ELF/linkerscript/diag5.test new file mode 100644 index 0000000000000..38a774e747ab6 --- /dev/null +++ b/test/ELF/linkerscript/diag5.test @@ -0,0 +1,14 @@ +# REQUIRES: x86 +# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux /dev/null -o %t.o +# RUN: echo "INCLUDE \"%s\"" > %t.script +# RUN: not ld.lld -shared %t.o -o %t --script %t.script 2>&1 | FileCheck -strict-whitespace %s + +SECTIONS { + .text : { *(.text) } + .keep : { *(.keep) } + boom .temp : { *(.temp) } +} + +# CHECK: 9: malformed number: .temp +# CHECK-NEXT: >>> boom .temp : { *(.temp) } +# CHECK-NEXT: >>> ^ |
