Add a FileCheck test that makes sure two different CHECKs won't match the
authorEli Bendersky <eliben@google.com>
Thu, 29 Nov 2012 21:24:44 +0000 (21:24 +0000)
committerEli Bendersky <eliben@google.com>
Thu, 29 Nov 2012 21:24:44 +0000 (21:24 +0000)
same string

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

test/FileCheck/two-checks-for-same-match.txt [new file with mode: 0644]

diff --git a/test/FileCheck/two-checks-for-same-match.txt b/test/FileCheck/two-checks-for-same-match.txt
new file mode 100644 (file)
index 0000000..2195aa9
--- /dev/null
@@ -0,0 +1,8 @@
+// Check that two distinct CHECK lines won't match the same string
+// RUN: not FileCheck -input-file %s %s
+
+; CHECK: {{a[0-9]b}}
+; CHECK: {{a[0-9]b}}
+
+a2b
+