summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/utilities/memory/pointer.traits
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx/test/std/utilities/memory/pointer.traits')
-rw-r--r--libcxx/test/std/utilities/memory/pointer.traits/rebind.pass.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/libcxx/test/std/utilities/memory/pointer.traits/rebind.pass.cpp b/libcxx/test/std/utilities/memory/pointer.traits/rebind.pass.cpp
index 8716c05f333..4caf4f65029 100644
--- a/libcxx/test/std/utilities/memory/pointer.traits/rebind.pass.cpp
+++ b/libcxx/test/std/utilities/memory/pointer.traits/rebind.pass.cpp
@@ -19,9 +19,11 @@
#include <memory>
#include <type_traits>
+#include "test_macros.h"
+
int main()
{
-#ifndef _LIBCPP_HAS_NO_TEMPLATE_ALIASES
+#if TEST_STD_VER >= 11
static_assert((std::is_same<std::pointer_traits<int*>::rebind<double>, double*>::value), "");
#else
static_assert((std::is_same<std::pointer_traits<int*>::rebind<double>::other, double*>::value), "");
OpenPOWER on IntegriCloud