File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -444,7 +444,7 @@ void ScriptParser::readOutput() {
444
444
void ScriptParser::readOutputArch () {
445
445
// OUTPUT_ARCH is ignored for now.
446
446
expect (" (" );
447
- while (next () != " )" && ! atEOF ( ))
447
+ while (till ( " )" ))
448
448
;
449
449
}
450
450
Original file line number Diff line number Diff line change 1
1
# REQUIRES: x86
2
- # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-freebsd /dev/null -o %t1
3
- # RUN: ld.lld -shared -o %t2 %t1 %s
2
+ # RUN: rm -rf %t && split-file %s %t && cd %t
3
+ # RUN: llvm-mc -filetype=obj -triple=x86_64 /dev/null -o a.o
4
+ # RUN: ld.lld -shared -T 1.lds a.o
4
5
6
+ #--- 1.lds
5
7
OUTPUT_ARCH(All data written here is ignored)
8
+
9
+ #--- unclosed.lds
10
+ OUTPUT_ARCH(All
11
+
12
+ # RUN: not ld.lld -shared -T unclosed.lds a.o 2>&1 | FileCheck %s --check-prefix=UNCLOSED
13
+ # UNCLOSED: error: unclosed.lds:1: unexpected EOF
You can’t perform that action at this time.
0 commit comments