llvm-project/llvm/test/tools/llvm-ar/invalid-object-file.test

9 lines
308 B
Plaintext

## Test that we get a proper error message with a file that is not a recognized object file.
# RUN: rm -f %t.txt
# RUN: touch %t.txt
# RUN: not llvm-ar sc %t.txt 2>&1 > /dev/null | FileCheck %s -DFILE=%t.txt
# CHECK: error: unable to load '[[FILE]]': file too small to be an archive
# CHECK-NOT: {{.}}