summaryrefslogtreecommitdiff
path: root/test/FileCheck
diff options
context:
space:
mode:
Diffstat (limited to 'test/FileCheck')
-rw-r--r--test/FileCheck/check-multiple-prefixes-nomatch.txt10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/FileCheck/check-multiple-prefixes-nomatch.txt b/test/FileCheck/check-multiple-prefixes-nomatch.txt
new file mode 100644
index 0000000000..9d3835985f
--- /dev/null
+++ b/test/FileCheck/check-multiple-prefixes-nomatch.txt
@@ -0,0 +1,10 @@
+; RUN: not FileCheck -input-file %s %s -check-prefix=FOO -check-prefix=BAR 2>&1 | FileCheck %s
+
+BAR
+bar
+foo
+; BAR: ba{{z}}
+; FOO: fo{{o}}
+
+; CHECK: {{error: expected string not found in input}}
+; CHECK-NEXT: {{B}}AR: ba{{[{][{]z[}][}]}}