brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.4 KiB · 114f5c2 Raw
50 lines · plain
1# REQUIRES: x862# RUN: rm -rf %t && split-file %s %t && cd %t3# RUN: llvm-mc -filetype=obj -triple=x86_64 /dev/null -o 0.o4 5#--- 1.lds6SECTIONS {7  .text + { *(.text) }8  .keep : { *(.keep) } /*9  comment line 110  comment line 2 */11  .temp : { *(.temp) }12}13 14# RUN: not ld.lld -shared 0.o -T 1.lds 2>&1 | FileCheck %s --check-prefix=CHECK1 --match-full-lines --strict-whitespace15#      CHECK1:{{.*}}:2: malformed number: {16# CHECK1-NEXT:>>>   .text + { *(.text) }17# CHECK1-NEXT:>>>           ^18 19#--- 2.lds20 21UNKNOWN_TAG {22  .text : { *(.text) }23  .keep : { *(.keep) }24  .temp : { *(.temp) }25}26 27# RUN: not ld.lld -shared 0.o -T 2.lds 2>&1 | FileCheck %s --check-prefix=CHECK2 --match-full-lines --strict-whitespace28#      CHECK2:{{.*}}:2: unknown directive: UNKNOWN_TAG29# CHECK2-NEXT:>>> UNKNOWN_TAG {30# CHECK2-NEXT:>>> ^31 32#--- 3.lds33SECTIONS {34  .text : { *(.text) }35  .keep : { *(.keep) }36  boom ^temp : { *(.temp) }37}38#--- 3a.lds39INCLUDE "3.lds"40#--- 3b.lds41foo = 3;42INCLUDE "3a.lds"43 44# RUN: not ld.lld -shared 0.o -T 3.lds 2>&1 | FileCheck %s --check-prefix=CHECK3 --match-full-lines --strict-whitespace45# RUN: not ld.lld -shared 0.o -T 3a.lds 2>&1 | FileCheck %s --check-prefix=CHECK3 --match-full-lines --strict-whitespace46# RUN: not ld.lld -shared 0.o -T 3b.lds 2>&1 | FileCheck %s --check-prefix=CHECK3 --match-full-lines --strict-whitespace47#      CHECK3:{{.*}}3.lds:4: malformed number: ^48# CHECK3-NEXT:>>>   boom ^temp : { *(.temp) }49# CHECK3-NEXT:>>>        ^50