llvm-for-llvmta/test/tools/llvm-strings/archive-filename.test

13 lines
455 B
Plaintext
Raw Permalink Normal View History

2022-04-25 10:02:23 +02:00
## Show that --print-file-name prints just the archive name for an archive and
## not the member names.
RUN: rm -rf %t && mkdir -p %t
RUN: echo -n abcd > %t/abcd
RUN: llvm-ar --format=gnu crs %t/archive.a %t/abcd
RUN: llvm-strings -f %t/archive.a | FileCheck %s
RUN: llvm-strings --print-file-name %t/archive.a | FileCheck %s
CHECK: archive.a: !<arch>
CHECK: archive.a: abcd/ 0 0 0 644 4 `
CHECK: archive.a: abcd