summaryrefslogtreecommitdiff
path: root/test/FileCheck
diff options
context:
space:
mode:
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
+