mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-25 03:06:04 +00:00

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
20 lines
584 B
Plaintext
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
|