xref: /llvm-project/llvm/test/tools/llvm-strings/eof.test (revision 43e9ead1eddee2081c820ac3e9616de6debaf6d8)
1## Show that llvm-strings prints the last string in the input even if no
2## unprintable character follows it.
3
4RUN: echo -n abcdefg | llvm-strings - | FileCheck %s --check-prefix=PRINT
5PRINT: abcdefg
6
7## Show that llvm-strings does not print the last string in the input if it is
8## too short and no unprintable character follows it.
9
10RUN: echo -n abc | llvm-strings - | FileCheck --allow-empty %s --check-prefix=NOPRINT
11NOPRINT-NOT: {{.}}
12