James Henderson | f23ce12 | 2019-08-12 11:36:11 +0000 | [diff] [blame] | 1 | ## Show that llvm-strings prints the last string in the input even if no |
| 2 | ## unprintable character follows it. |
| 3 | |
James Henderson | 43e9ead | 2019-09-02 11:42:30 +0000 | [diff] [blame] | 4 | RUN: echo -n abcdefg | llvm-strings - | FileCheck %s --check-prefix=PRINT |
| 5 | PRINT: 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 | |
| 10 | RUN: echo -n abc | llvm-strings - | FileCheck --allow-empty %s --check-prefix=NOPRINT |
| 11 | NOPRINT-NOT: {{.}} |