summaryrefslogtreecommitdiffstats
path: root/llvm/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
commita7181a1b351c93fe39fe925301af9808332f531f (patch)
tree01c86aa929ab70480edd16f5066f349c74dc0e2d /llvm/test/FileCheck
parent393e3088a1fab513490cbb759a312a0ee94a5be9 (diff)
downloadbcm5719-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.txt5
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}}
OpenPOWER on IntegriCloud