summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/llvm-strings/eof.test
blob: 19b5adc85ef0e4b1d84d5b2069727eae23f04c8d (plain)
1
2
3
4
5
6
7
8
9
10
11
## Show that llvm-strings prints the last string in the input even if no
## unprintable character follows it.

RUN: echo -n abcdefg | llvm-strings - | FileCheck %s --check-prefix=PRINT
PRINT: abcdefg

## Show that llvm-strings does not print the last string in the input if it is
## too short and no unprintable character follows it.

RUN: echo -n abc | llvm-strings - | FileCheck --allow-empty %s --check-prefix=NOPRINT
NOPRINT-NOT: {{.}}
OpenPOWER on IntegriCloud