Skip to content

Commit ba9b5ff

Browse files
committed
[ELF,test] Fix RUN line issue in defsym.s
1 parent 7cbd899 commit ba9b5ff

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lld/test/ELF/defsym.s

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111

1212
## Check we are reporting the error correctly and don't crash
1313
## when handling the second --defsym.
14-
# RUN: not ld.lld -o /dev/null %t.o --defsym ERR+ \
15-
# --defsym foo2=foo1 2>&1 | FileCheck %s --check-prefix=ERR
14+
# RUN: not ld.lld -o /dev/null %t.o --defsym ERR+ --defsym foo2=foo1 2>&1 | FileCheck %s --check-prefix=ERR
1615
# ERR: error: --defsym: syntax error: ERR+
1716

1817
# CHECK-DAG: 0000000000000123 0 NOTYPE GLOBAL DEFAULT ABS foo1
@@ -27,7 +26,7 @@
2726
# RUN: ld.lld -o %t %t.o --defsym=foo2=1
2827
# RUN: llvm-readelf -s %t | FileCheck %s --check-prefix=ABS
2928

30-
# ABS: 0000000000000123 0 NOTYPE GLOBAL DEFAULT ABS foo2
29+
# ABS: 0000000000000001 0 NOTYPE GLOBAL DEFAULT ABS foo2
3130

3231
# RUN: ld.lld -o %t %t.o --defsym=foo2=foo1+5
3332
# RUN: llvm-readelf -s %t | FileCheck %s --check-prefix=EXPR

0 commit comments

Comments
 (0)