summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/test/FileCheck/two-checks-for-same-match.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/test/FileCheck/two-checks-for-same-match.txt b/llvm/test/FileCheck/two-checks-for-same-match.txt
new file mode 100644
index 00000000000..2195aa96c54
--- /dev/null
+++ b/llvm/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
+
OpenPOWER on IntegriCloud