summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/llvm-ar/version.test
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/tools/llvm-ar/version.test')
-rw-r--r--llvm/test/tools/llvm-ar/version.test11
1 files changed, 11 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-ar/version.test b/llvm/test/tools/llvm-ar/version.test
new file mode 100644
index 00000000000..555e5fdf324
--- /dev/null
+++ b/llvm/test/tools/llvm-ar/version.test
@@ -0,0 +1,11 @@
+## 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
+RUN: llvm-ar --version | FileCheck %s
+
+CHECK: version
OpenPOWER on IntegriCloud