1## Test that we get a proper error message with a file that is not a recognized object file.
2
3# RUN: rm -f %t.txt
4# RUN: touch %t.txt
5# RUN: not llvm-ar sc %t.txt 2>&1 > /dev/null | FileCheck %s -DFILE=%t.txt
6
7# CHECK:     error: unable to load '[[FILE]]': file too small to be an archive
8# CHECK-NOT: {{.}}
9
10## Also test that errors like this (e.g. invlid input files) don't generate a usage message
11# CHECK-NOT: USAGE: llvm-ar
12