summaryrefslogtreecommitdiff
path: root/test/FileCheck
diff options
context:
space:
mode:
authorAlexey Samsonov <samsonov@google.com>2013-11-13 14:12:52 +0000
committerAlexey Samsonov <samsonov@google.com>2013-11-13 14:12:52 +0000
commit0ab53c711295f0469c86db088dc895238da801aa (patch)
tree253d83bbdb00914963722950b35f1a43ba014596 /test/FileCheck
parentde9a1a2055851a0f0a88e459cd23a246a90efd45 (diff)
downloadllvm-0ab53c711295f0469c86db088dc895238da801aa.tar.gz
llvm-0ab53c711295f0469c86db088dc895238da801aa.tar.bz2
llvm-0ab53c711295f0469c86db088dc895238da801aa.tar.xz
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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194577 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/FileCheck')
-rw-r--r--test/FileCheck/check-multiple-prefixes-substr.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/FileCheck/check-multiple-prefixes-substr.txt b/test/FileCheck/check-multiple-prefixes-substr.txt
new file mode 100644
index 0000000000..76a2ca8e75
--- /dev/null
+++ b/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}}