llvm-for-llvmta/test/tools/llvm-strings/file-filename.test

11 lines
363 B
Plaintext
Raw Normal View History

2022-04-25 10:02:23 +02:00
## Show that --print-file-name prints the name of the file before each line in
## the output.
RUN: echo abcd > %t
RUN: echo efg >> %t
RUN: echo hijk >> %t
RUN: llvm-strings -f %t | FileCheck %s --strict-whitespace -DFILE=%t
RUN: llvm-strings --print-file-name %t | FileCheck %s --strict-whitespace -DFILE=%t
CHECK: [[FILE]]: abcd
CHECK-NEXT: [[FILE]]: hijk