File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,15 +26,15 @@ RUN: %nm %t.lto.out | %filecheck %s --check-prefix=WITH-LTO
2626RUN: %touch %t.empty
2727RUN: %objcopy --add-section=.llvmbc=%t.empty \
2828RUN: --set-section-flags=.llvmbc=exclude %t.native.o %t.empty.llvmbc.o
29- RUN: %link %linkopts -flto -r %t.empty.llvmbc.o -o /dev/null \
29+ RUN: %link %linkopts -flto -r %t.empty.llvmbc.o -o %t1.out \
3030RUN: --trace=lto 2>&1 | %filecheck %s --check-prefix=EMPTY-LLVMBC
3131
3232# Invalid non-bitcode payload should diagnose instead of crashing.
3333RUN: printf "eld\n" > %t.invalid
3434RUN: %objcopy --add-section=.llvmbc=%t.invalid \
3535RUN: --set-section-flags=.llvmbc=exclude %t.native.o %t.invalid.llvmbc.o
3636RUN: %not %link %linkopts -flto -r %t.invalid.llvmbc.o \
37- RUN: -o /dev/null --trace=lto 2>&1 | %filecheck %s --check-prefix=INVALID-LLVMBC
37+ RUN: -o %t1.out --trace=lto 2>&1 | %filecheck %s --check-prefix=INVALID-LLVMBC
3838
3939HAS-LLVMBC-SECTION: .llvmbc
4040
Original file line number Diff line number Diff line change @@ -39,14 +39,14 @@ RUN: %readelf -S %t.reloc.o | %filecheck %s --check-prefix=NO-LTO-SECTION
3939RUN: %touch %t.empty
4040RUN: %objcopy --add-section=.llvm.lto=%t.empty --set-section-flags=.llvm.lto=exclude \
4141RUN: --set-section-type=.llvm.lto=0x6fff4c0c %t.native.o %t.fat.o
42- RUN: %link --fat-lto-objects -r %t.fat.o -o /dev/null \
42+ RUN: %link --fat-lto-objects -r %t.fat.o -o %t1.out \
4343RUN: --trace=lto 2>&1 | %filecheck %s -check-prefix=EMBED-LTO
4444
4545# Invalid non-bitcode payload should diagnose instead of crashing.
4646RUN: printf "eld\n" > %t.invalid
4747RUN: %objcopy --add-section=.llvm.lto=%t.invalid --set-section-flags=.llvm.lto=exclude \
4848RUN: --set-section-type=.llvm.lto=0x6fff4c0c %t.native.o %t.fat.invalid.o
49- RUN: %not %link --fat-lto-objects -r %t.fat.invalid.o -o /dev/null \
49+ RUN: %not %link --fat-lto-objects -r %t.fat.invalid.o -o %t1.out \
5050RUN: --trace=lto 2>&1 | %filecheck %s -check-prefix=INVALID-EMBED-LTO
5151
5252HAS-LTO-SECTION: .llvm.lto
You can’t perform that action at this time.
0 commit comments