summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/llvm-strings/multiple-inputs.test
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/tools/llvm-strings/multiple-inputs.test')
-rw-r--r--llvm/test/tools/llvm-strings/multiple-inputs.test13
1 files changed, 13 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-strings/multiple-inputs.test b/llvm/test/tools/llvm-strings/multiple-inputs.test
new file mode 100644
index 00000000000..8eeeebfc489
--- /dev/null
+++ b/llvm/test/tools/llvm-strings/multiple-inputs.test
@@ -0,0 +1,13 @@
+## Show that llvm-strings reads every file specified on the command-line.
+## This test uses --print-file-name and --radix to show that the values are
+## updated for the second file.
+
+RUN: echo abcd > %t1
+RUN: echo 1234 >> %t1
+RUN: echo defg > %t2
+RUN: llvm-strings --print-file-name --radix=d %t1 %t2 \
+RUN: | FileCheck %s -DFILE1=%t1 -DFILE2=%t2 --implicit-check-not={{.}}
+
+CHECK: [[FILE1]]: 0 abcd
+CHECK-NEXT: [[FILE1]]: 5 1234
+CHECK-NEXT: [[FILE2]]: 0 defg
OpenPOWER on IntegriCloud