diff options
| author | Alexey Samsonov <samsonov@google.com> | 2013-11-13 14:12:52 +0000 |
|---|---|---|
| committer | Alexey Samsonov <samsonov@google.com> | 2013-11-13 14:12:52 +0000 |
| commit | a7181a1b351c93fe39fe925301af9808332f531f (patch) | |
| tree | 01c86aa929ab70480edd16f5066f349c74dc0e2d /llvm/test/FileCheck | |
| parent | 393e3088a1fab513490cbb759a312a0ee94a5be9 (diff) | |
| download | bcm5719-llvm-a7181a1b351c93fe39fe925301af9808332f531f.tar.gz bcm5719-llvm-a7181a1b351c93fe39fe925301af9808332f531f.zip | |
FileCheck: fix matching of one check-prefix is a prefix of another
Summary:
Fix a case when "FileCheck --check-prefix=CHECK --check-prefix=CHECKER"
would silently ignore check-lines of the form:
CHECKER: foo
Reviewers: dsanders
Reviewed By: dsanders
CC: llvm-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D2168
llvm-svn: 194577
Diffstat (limited to 'llvm/test/FileCheck')
| -rw-r--r-- | llvm/test/FileCheck/check-multiple-prefixes-substr.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/test/FileCheck/check-multiple-prefixes-substr.txt b/llvm/test/FileCheck/check-multiple-prefixes-substr.txt new file mode 100644 index 00000000000..76a2ca8e75c --- /dev/null +++ b/llvm/test/FileCheck/check-multiple-prefixes-substr.txt @@ -0,0 +1,5 @@ +// RUN: FileCheck -check-prefix=CHECKER -check-prefix=CHECK -input-file %s %s +// RUN: FileCheck -check-prefix=CHECK -check-prefix=CHECKER -input-file %s %s + +foo +; CHECKER: fo{{o}} |

