summaryrefslogtreecommitdiff
path: root/test/FileCheck
diff options
context:
space:
mode:
authorEli Bendersky <eliben@google.com>2012-11-29 21:24:44 +0000
committerEli Bendersky <eliben@google.com>2012-11-29 21:24:44 +0000
commite8832680f8b7a052bd77751d616d41a20d8bacb1 (patch)
treeda62273879418db47d4802592f5a0ff0084ec210 /test/FileCheck
parent78532fd6ef87b0256e5fd5c33ccc1ee7e638061d (diff)
downloadllvm-e8832680f8b7a052bd77751d616d41a20d8bacb1.tar.gz
llvm-e8832680f8b7a052bd77751d616d41a20d8bacb1.tar.bz2
llvm-e8832680f8b7a052bd77751d616d41a20d8bacb1.tar.xz
Add a FileCheck test that makes sure two different CHECKs won't match the
same string git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168942 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/FileCheck')
-rw-r--r--test/FileCheck/two-checks-for-same-match.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/FileCheck/two-checks-for-same-match.txt b/test/FileCheck/two-checks-for-same-match.txt
new file mode 100644
index 0000000000..2195aa96c5
--- /dev/null
+++ b/test/FileCheck/two-checks-for-same-match.txt
@@ -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
+