summaryrefslogtreecommitdiffstats
path: root/lld/test/ELF/linkerscript/diag1.test
blob: 73a627ff4ef519d72e8e89f095ba16f067b7f897 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# REQUIRES: x86
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux /dev/null -o %t.o
# RUN: not ld.lld -shared %t.o -o %t --script %s 2>&1 | FileCheck -strict-whitespace %s

SECTIONS {
  .text + { *(.text) }
  .keep : { *(.keep) } /*
  comment line 1
  comment line 2 */
  .temp : { *(.temp) }
}

CHECK:      6: malformed number: +
CHECK-NEXT: >>>   .text + { *(.text) }
CHECK-NEXT: >>>         ^
OpenPOWER on IntegriCloud