]> granicus.if.org Git - llvm/commitdiff
Make check lines not match themselves.
authorPaul Robinson <paul.robinson@sony.com>
Thu, 16 Jun 2016 19:38:48 +0000 (19:38 +0000)
committerPaul Robinson <paul.robinson@sony.com>
Thu, 16 Jun 2016 19:38:48 +0000 (19:38 +0000)
Noticed during review of the recent FileCheck change.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@272940 91177308-0d34-0410-b5e6-96231b3b80d8

test/FileCheck/check-substring-multi-prefix.txt

index b7edb8b530e5eece01212eedcebe5e12eb5a0202..1fb25d8f58c4ced678b131d10a549bf9fb04dc87 100644 (file)
@@ -4,6 +4,7 @@ foo
 bar
 buzz
 
-OVERLAP: foo
-AAAOVERLAP: bar
-OVERLAP: buzz
+// Use regex notation so the checks don't match themselves.
+OVERLAP: fo{{o}}
+AAAOVERLAP: ba{{r}}
+OVERLAP: buz{{z}}