From 0ab53c711295f0469c86db088dc895238da801aa Mon Sep 17 00:00:00 2001 From: Alexey Samsonov Date: Wed, 13 Nov 2013 14:12:52 +0000 Subject: 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 --- test/FileCheck/check-multiple-prefixes-substr.txt | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 test/FileCheck/check-multiple-prefixes-substr.txt (limited to 'test/FileCheck') 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}} -- cgit v1.2.3