1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00
llvm-mirror/test/tools/llvm-ranlib/bad-usage.test
Sam Clegg 0c3847c076 llvm-ranlib/nm: Don't print usage message except for usage errors
Also, fix a bug in ranlib where it didn't correctly detect being run
without any argument and would try to operate on the empty string.

Differential Revision: https://reviews.llvm.org/D70021
2019-11-08 15:17:07 -08:00

8 lines
220 B
Plaintext

## Test that useage message is shown when no input file is given
## And that we return non-zero.
# RUN: not llvm-ranlib 2>&1 | FileCheck %s
# CHECK: error: an archive name must be specified
# CHECK: USAGE: llvm-ranlib