summaryrefslogtreecommitdiffstats
path: root/llvm/test/FileCheck/check-substring-multi-prefix-2.txt
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2013-11-10 02:04:09 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2013-11-10 02:04:09 +0000
commit13df462691745d7f99c6ba0b0c26dc95eda16b73 (patch)
treeb69a2181eea4cc0a4bc9d997ad0b6b972e4f9cab /llvm/test/FileCheck/check-substring-multi-prefix-2.txt
parent5bcefabcda5ef0e9b8b355a40875b2a83d302b5d (diff)
downloadbcm5719-llvm-13df462691745d7f99c6ba0b0c26dc95eda16b73.tar.gz
bcm5719-llvm-13df462691745d7f99c6ba0b0c26dc95eda16b73.zip
Allow multiple check prefixes in FileCheck.
This is useful if you want to run multiple variations of a single test, and the majority of check lines should be the same. llvm-svn: 194343
Diffstat (limited to 'llvm/test/FileCheck/check-substring-multi-prefix-2.txt')
-rw-r--r--llvm/test/FileCheck/check-substring-multi-prefix-2.txt11
1 files changed, 11 insertions, 0 deletions
diff --git a/llvm/test/FileCheck/check-substring-multi-prefix-2.txt b/llvm/test/FileCheck/check-substring-multi-prefix-2.txt
new file mode 100644
index 00000000000..618a2884d4a
--- /dev/null
+++ b/llvm/test/FileCheck/check-substring-multi-prefix-2.txt
@@ -0,0 +1,11 @@
+; RUN: FileCheck -check-prefix=FOO -check-prefix=FOOBAR -check-prefix=BARFOO -input-file %s %s
+; RUN: FileCheck -check-prefix=FOOBAR -check-prefix=FOO -check-prefix=BARFOO -input-file %s %s
+; RUN: FileCheck -check-prefix=FOOBAR -check-prefix=BARFOO -check-prefix=FOO -input-file %s %s
+
+this is the match
+this is another
+
+FOO
+FOOBAR
+FOOBAR: this is the {{match}}
+BARFOO: this is {{another}}
OpenPOWER on IntegriCloud