aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/tools/llvm-ar/version.test
blob: 0220f2cfe559a49fdc09ee296b78249b4f85dffb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
## Show that the version for llvm-ar can be printed with either the long flag
## -version or with the V modifier.

RUN: llvm-ar V | FileCheck %s
RUN: llvm-ar xV | FileCheck %s
RUN: llvm-ar -V | FileCheck %s
RUN: llvm-ar -xV | FileCheck %s
RUN: llvm-ar --version | FileCheck %s

CHECK: version

RUN: not llvm-ar -version 2>&1 | FileCheck %s --check-prefix=ONE-DASH

ONE-DASH: error: unknown option e