xref: /llvm-project/lld/test/ELF/diagnostic-options.test (revision 67a212af4c24426de6e436e9b82590d41faa665c)
1# RUN: ld.lld -o %t.out -shared /dev/null -m elf_x86_64 \
2# RUN:   --print-archive-stats=%t --why-extract=%t --dependency-file=%t -Map=%t
3# RUN: FileCheck -DOUT_FILE=%t.out --input-file=%t %s
4
5# RUN: ld.lld -o %t.out -shared /dev/null -m elf_x86_64 \
6# RUN:   --print-archive-stats=- --why-extract=- --dependency-file=- -Map=- \
7# RUN:   | FileCheck -DOUT_FILE=%t.out %s
8
9## From --print-archive-stats
10# CHECK: members extracted archive
11
12## From --why-extract
13# CHECK: reference extracted symbol
14
15## From --dependency-file
16# CHECK: [[OUT_FILE]]: \
17
18## From -Map
19# CHECK: VMA LMA Size
20