llvm-project/lld/test/ELF/diagnostic-options.test
Alex Brachet 67a212af4c [ELF] Make subsequent opens to auxiliary files append
Previously, the same file could be used across diagnostic options but
the file would be silently overwritten by the whichever option gets
handled last.

Differential Revision: https://reviews.llvm.org/D153873
2023-07-11 11:08:57 +00:00

20 lines
584 B
Plaintext

# RUN: ld.lld -o %t.out -shared /dev/null -m elf_x86_64 \
# RUN: --print-archive-stats=%t --why-extract=%t --dependency-file=%t -Map=%t
# RUN: FileCheck -DOUT_FILE=%t.out --input-file=%t %s
# RUN: ld.lld -o %t.out -shared /dev/null -m elf_x86_64 \
# RUN: --print-archive-stats=- --why-extract=- --dependency-file=- -Map=- \
# RUN: | FileCheck -DOUT_FILE=%t.out %s
## From --print-archive-stats
# CHECK: members extracted archive
## From --why-extract
# CHECK: reference extracted symbol
## From --dependency-file
# CHECK: [[OUT_FILE]]: \
## From -Map
# CHECK: VMA LMA Size