xref: /llvm-project/llvm/test/tools/llvm-strings/file-filename.test (revision f23ce128fd614d5ed7b5c70038c5db8b257c5127)
1## Show that --print-file-name prints the name of the file before each line in
2## the output.
3
4RUN: echo abcd > %t
5RUN: echo efg >> %t
6RUN: echo hijk >> %t
7RUN: llvm-strings -f %t | FileCheck %s --strict-whitespace -DFILE=%t
8RUN: llvm-strings --print-file-name %t | FileCheck %s --strict-whitespace -DFILE=%t
9CHECK:      [[FILE]]: abcd
10CHECK-NEXT: [[FILE]]: hijk
11