blob: 73a627ff4ef519d72e8e89f095ba16f067b7f897 [file] [log] [blame]
Rui Ueyama6e3166a2018-03-01 04:21:42 +00001# REQUIRES: x86
2# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux /dev/null -o %t.o
3# RUN: not ld.lld -shared %t.o -o %t --script %s 2>&1 | FileCheck -strict-whitespace %s
4
5SECTIONS {
6 .text + { *(.text) }
7 .keep : { *(.keep) } /*
8 comment line 1
9 comment line 2 */
10 .temp : { *(.temp) }
11}
12
13CHECK: 6: malformed number: +
14CHECK-NEXT: >>> .text + { *(.text) }
15CHECK-NEXT: >>> ^