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