summaryrefslogtreecommitdiffstats
path: root/llvm/utils/lit/tests/Inputs
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2016-06-02 01:59:57 +0000
committerEric Fiselier <eric@efcs.ca>2016-06-02 01:59:57 +0000
commitcd24b0d0d855cb77f891f5fae1a779e8fea93879 (patch)
treebea315c79dc240d8194ba251ef9d4fde7842181c /llvm/utils/lit/tests/Inputs
parent0b2933061296634c317e0a322ef7458e9d73e3fc (diff)
downloadbcm5719-llvm-cd24b0d0d855cb77f891f5fae1a779e8fea93879.tar.gz
bcm5719-llvm-cd24b0d0d855cb77f891f5fae1a779e8fea93879.zip
Add "REQUIRES-ANY" feature test
Summary: This patch adds a "REQUIRES-ANY" feature test that is disjunctive. This marks a test as `UNSUPPORTED` if none of the specified features are available. Libc++ has the need to write feature test such as `// REQUIRES-ANY: c++98, c++03` when testing of behavior that is specific to older dialects but has since changed. Reviewers: rnk, ddunbar Subscribers: ddunbar, probinson, llvm-commits, cfe-commits Differential Revision: http://reviews.llvm.org/D20757 llvm-svn: 271468
Diffstat (limited to 'llvm/utils/lit/tests/Inputs')
-rw-r--r--llvm/utils/lit/tests/Inputs/shtest-format/requires-any-missing.txt2
-rw-r--r--llvm/utils/lit/tests/Inputs/shtest-format/requires-any-present.txt2
2 files changed, 4 insertions, 0 deletions
diff --git a/llvm/utils/lit/tests/Inputs/shtest-format/requires-any-missing.txt b/llvm/utils/lit/tests/Inputs/shtest-format/requires-any-missing.txt
new file mode 100644
index 00000000000..c977ee90c9e
--- /dev/null
+++ b/llvm/utils/lit/tests/Inputs/shtest-format/requires-any-missing.txt
@@ -0,0 +1,2 @@
+RUN: true
+REQUIRES-ANY: a-missing-feature, a-missing-feature-2
diff --git a/llvm/utils/lit/tests/Inputs/shtest-format/requires-any-present.txt b/llvm/utils/lit/tests/Inputs/shtest-format/requires-any-present.txt
new file mode 100644
index 00000000000..f3be518b258
--- /dev/null
+++ b/llvm/utils/lit/tests/Inputs/shtest-format/requires-any-present.txt
@@ -0,0 +1,2 @@
+RUN: true
+REQUIRES-ANY: a-missing-feature, a-present-feature
OpenPOWER on IntegriCloud