26 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#--- empty.lds6#--- 1.lds7 8SECTIONS /*9#--- 1a.lds10foo = 3;11INCLUDE "empty.lds"12INCLUDE "1.lds"13 14# RUN: not ld.lld -shared 0.o -T 1.lds 2>&1 | FileCheck %s --check-prefix=CHECK1 --match-full-lines --strict-whitespace15# RUN: not ld.lld -shared 0.o -T 1a.lds 2>&1 | FileCheck %s --check-prefix=CHECK1 --match-full-lines --strict-whitespace16# CHECK1:{{.*}}error: 1.lds:2: unclosed comment in a linker script17# CHECK1-NEXT:>>> SECTIONS /*18# CHECK1-NEXT:>>> ^19 20#--- 2.lds21INCLUDE "empty.lds"22"23# RUN: not ld.lld -shared 0.o -T 2.lds 2>&1 | FileCheck %s --check-prefix=CHECK2 --match-full-lines --strict-whitespace24# CHECK2:{{.*}}error: 2.lds:2: unclosed quote25# CHECK2-NOT:{{.}}26