You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
429 B
12 lines
429 B
## 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: {{.}}
|
|
|
|
## Also test that errors like this (e.g. invlid input files) don't generate a usage message
|
|
# CHECK-NOT: USAGE: llvm-ar
|