llvm/llvm/test/tools/llvm-ar/version.test

## 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