xref: /llvm-project/llvm/test/Object/archive-unknown-filetype.test (revision fe3b621f05e706fb04dec121c136b6de82a9e277)
1## Show that the archive library does not emit an error or add any symbols to
2## the archive symbol table, when it encounters an unknown file type, but still
3## adds the file to the archive.
4
5# RUN: echo something > %t
6# RUN: rm -f %t.a
7# RUN: llvm-ar rc %t.a %t
8# RUN: llvm-ar t %t.a | FileCheck %s --check-prefix=CONTENTS -DFILE=%basename_t
9# RUN: llvm-nm --print-armap %t.a | FileCheck %s --allow-empty --implicit-check-not={{.}}
10
11# CONTENTS: [[FILE]]
12