xref: /llvm-project/llvm/test/tools/llvm-strings/multiple-inputs.test (revision f23ce128fd614d5ed7b5c70038c5db8b257c5127)
1## Show that llvm-strings reads every file specified on the command-line.
2## This test uses --print-file-name and --radix to show that the values are
3## updated for the second file.
4
5RUN: echo abcd > %t1
6RUN: echo 1234 >> %t1
7RUN: echo defg > %t2
8RUN: llvm-strings --print-file-name --radix=d %t1 %t2 \
9RUN:   | FileCheck %s -DFILE1=%t1 -DFILE2=%t2 --implicit-check-not={{.}}
10
11CHECK:      [[FILE1]]: 0 abcd
12CHECK-NEXT: [[FILE1]]: 5 1234
13CHECK-NEXT: [[FILE2]]: 0 defg
14