Skip to content

Commit 4ad3dee

Browse files
committed
[ELF] PHDRS: test EOF without ;
1 parent dbd65a0 commit 4ad3dee

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lld/test/ELF/linkerscript/phdrs.s

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,12 @@ PHDRS { text PT_LOAD ;
104104
# UNCLOSED:error: unclosed.lds:1: unexpected EOF
105105
# UNCLOSED-NOT:{{.}}
106106

107+
#--- unclosed2.lds
108+
PHDRS { text PT_LOAD
109+
110+
# RUN: not ld.lld -T unclosed2.lds a.o 2>&1 | FileCheck --check-prefix=UNCLOSED2 %s
111+
# UNCLOSED2: error: unclosed2.lds:1: unexpected header attribute:
112+
107113
#--- a.s
108114
.global _start
109115
_start:

0 commit comments

Comments
 (0)