summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/containers/container.adaptors/priority.queue/priqueue.special
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2016-06-14 21:31:42 +0000
committerEric Fiselier <eric@efcs.ca>2016-06-14 21:31:42 +0000
commitf2f2a6395fad5bd49a573fdf2b20072735d496f7 (patch)
tree9e17e483fe805be6d7940b2b653063df88815347 /libcxx/test/std/containers/container.adaptors/priority.queue/priqueue.special
parent23b6d6adc9dd38fe6c2cb433e163dc74b2cdc8e6 (diff)
downloadbcm5719-llvm-f2f2a6395fad5bd49a573fdf2b20072735d496f7.tar.gz
bcm5719-llvm-f2f2a6395fad5bd49a573fdf2b20072735d496f7.zip
Replace __cplusplus comparisons and dialect __has_feature checks with TEST_STD_VER.
This is a huge cleanup that helps make the libc++ test suite more portable. Patch from STL@microsoft.com. Thanks STL! llvm-svn: 272716
Diffstat (limited to 'libcxx/test/std/containers/container.adaptors/priority.queue/priqueue.special')
-rw-r--r--libcxx/test/std/containers/container.adaptors/priority.queue/priqueue.special/swap_noexcept.pass.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libcxx/test/std/containers/container.adaptors/priority.queue/priqueue.special/swap_noexcept.pass.cpp b/libcxx/test/std/containers/container.adaptors/priority.queue/priqueue.special/swap_noexcept.pass.cpp
index 4d2b441c60e..bfff607590f 100644
--- a/libcxx/test/std/containers/container.adaptors/priority.queue/priqueue.special/swap_noexcept.pass.cpp
+++ b/libcxx/test/std/containers/container.adaptors/priority.queue/priqueue.special/swap_noexcept.pass.cpp
@@ -15,6 +15,8 @@
// This tests a conforming extension
+// UNSUPPORTED: c++98, c++03
+
#include <queue>
#include <cassert>
@@ -22,11 +24,9 @@
int main()
{
-#if __has_feature(cxx_noexcept)
{
typedef std::priority_queue<MoveOnly> C;
C c1, c2;
static_assert(noexcept(swap(c1, c2)), "");
}
-#endif
}
OpenPOWER on IntegriCloud