Skip to content

Commit 16343f0

Browse files
committed
[ELF,test] Fix defsym.ll
1 parent bb3e0d7 commit 16343f0

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

lld/test/ELF/lto/defsym.ll

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
11
; REQUIRES: x86
2+
; RUN: rm -rf %t && mkdir %t && cd %t
3+
24
; LTO
3-
; RUN: llvm-as %s -o %t.o
4-
; RUN: llvm-as %S/Inputs/defsym-bar.ll -o %t1.o
5-
; RUN: ld.lld %t.o %t1.o -shared -o %t.so -defsym=bar2=bar3 -save-temps
6-
; RUN: llvm-readelf --symbols %t.so.lto.o | FileCheck --check-prefix=OBJ %s
7-
; RUN: llvm-objdump -d %t.so | FileCheck %s
5+
; RUN: llvm-as %s -o a.o
6+
; RUN: llvm-as %S/Inputs/defsym-bar.ll -o b.o
7+
; RUN: ld.lld a.o b.o -shared -o a.so -defsym=bar2=bar3 -save-temps
8+
; RUN: llvm-readelf --symbols a.so.lto.o | FileCheck --check-prefix=OBJ %s
9+
; RUN: llvm-objdump -d a.so | FileCheck %s
810

911
; ThinLTO
10-
; RUN: opt -module-summary %s -o %t.o
11-
; RUN: opt -module-summary %S/Inputs/defsym-bar.ll -o %t1.o
12-
; RUN: ld.lld %t.o %t1.o -shared -o %t2.so -defsym=bar2=bar3 -save-temps
13-
; RUN: llvm-readelf --symbols %t2.so1.lto.o | FileCheck --check-prefix=OBJ %s
14-
; RUN: llvm-objdump -d %t2.so | FileCheck %s
12+
; RUN: opt -module-summary %s -o a.o
13+
; RUN: opt -module-summary %S/Inputs/defsym-bar.ll -o b.o
14+
; RUN: ld.lld a.o b.o -shared -o a2.so -defsym=bar2=bar3 -save-temps
15+
; RUN: llvm-readelf --symbols a2.so1.lto.o | FileCheck --check-prefix=OBJ %s
16+
; RUN: llvm-objdump -d a2.so | FileCheck %s
1517

1618
; OBJ: UND bar2
1719

0 commit comments

Comments
 (0)