Rui Ueyama | 6e3166a | 2018-03-01 04:21:42 +0000 | [diff] [blame] | 1 | # 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 | |||||
5 | SECTIONS { | ||||
6 | .text + { *(.text) } | ||||
7 | .keep : { *(.keep) } /* | ||||
8 | comment line 1 | ||||
9 | comment line 2 */ | ||||
10 | .temp : { *(.temp) } | ||||
11 | } | ||||
12 | |||||
13 | CHECK: 6: malformed number: + | ||||
14 | CHECK-NEXT: >>> .text + { *(.text) } | ||||
15 | CHECK-NEXT: >>> ^ |