summaryrefslogtreecommitdiffstats
path: root/pstl/test
diff options
context:
space:
mode:
authorLouis Dionne <ldionne@apple.com>2019-04-11 17:08:55 +0000
committerLouis Dionne <ldionne@apple.com>2019-04-11 17:08:55 +0000
commitab38599bb1240066ece60f0b1f38d96c9901691b (patch)
tree5a0ff0d86eac74e6c770eb2068c91a55663c6543 /pstl/test
parent8d083c5e0bd3ce00c0ca46cec0aed9281c3cc38d (diff)
downloadbcm5719-llvm-ab38599bb1240066ece60f0b1f38d96c9901691b.tar.gz
bcm5719-llvm-ab38599bb1240066ece60f0b1f38d96c9901691b.zip
[pstl] Setup the _PSTL_VERSION macro like _LIBCPP_VERSION, and add release notes
Reviewers: rodgert, MikeDvorskiy Subscribers: mgorny, jkorous, dexonsmith, libcxx-commits Tags: #libc Differential Revision: https://reviews.llvm.org/D60464 llvm-svn: 358193
Diffstat (limited to 'pstl/test')
-rw-r--r--pstl/test/pstl/version.pass.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/pstl/test/pstl/version.pass.cpp b/pstl/test/pstl/version.pass.cpp
new file mode 100644
index 00000000000..15f6aeba762
--- /dev/null
+++ b/pstl/test/pstl/version.pass.cpp
@@ -0,0 +1,17 @@
+//===----------------------------------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#include <pstl/internal/pstl_config.h>
+
+
+static_assert(_PSTL_VERSION == 9000);
+static_assert(_PSTL_VERSION_MAJOR == 9);
+static_assert(_PSTL_VERSION_MINOR == 00);
+static_assert(_PSTL_VERSION_PATCH == 0);
+
+int main() { }
OpenPOWER on IntegriCloud