xref: /llvm-project/llvm/test/tools/llvm-strings/archive-filename.test (revision f23ce128fd614d5ed7b5c70038c5db8b257c5127)
1## Show that --print-file-name prints just the archive name for an archive and
2## not the member names.
3
4RUN: rm -rf %t && mkdir -p %t
5RUN: echo -n abcd > %t/abcd
6RUN: llvm-ar --format=gnu crs %t/archive.a %t/abcd
7RUN: llvm-strings -f %t/archive.a | FileCheck %s
8RUN: llvm-strings --print-file-name %t/archive.a | FileCheck %s
9
10CHECK: archive.a: !<arch>
11CHECK: archive.a: abcd/           0           0     0     644     4         `
12CHECK: archive.a: abcd
13