summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/containers/sequences/array/array.size
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2017-04-16 02:50:40 +0000
committerEric Fiselier <eric@efcs.ca>2017-04-16 02:50:40 +0000
commit208156e88be410a58af2ab214fe2e8e390d37670 (patch)
tree87bf316a5e48f9ed0bae79c46afe9842efb7f206 /libcxx/test/std/containers/sequences/array/array.size
parentb7576b892b4385d944ba975a9ffa971c26263801 (diff)
downloadbcm5719-llvm-208156e88be410a58af2ab214fe2e8e390d37670.tar.gz
bcm5719-llvm-208156e88be410a58af2ab214fe2e8e390d37670.zip
Replace _LIBCPP_HAS_NO_<C++03 feature> with _LIBCPP_CXX03_LANG in <array>
llvm-svn: 300412
Diffstat (limited to 'libcxx/test/std/containers/sequences/array/array.size')
-rw-r--r--libcxx/test/std/containers/sequences/array/array.size/size.pass.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/libcxx/test/std/containers/sequences/array/array.size/size.pass.cpp b/libcxx/test/std/containers/sequences/array/array.size/size.pass.cpp
index a833fdc0471..2fe5355124a 100644
--- a/libcxx/test/std/containers/sequences/array/array.size/size.pass.cpp
+++ b/libcxx/test/std/containers/sequences/array/array.size/size.pass.cpp
@@ -14,6 +14,8 @@
#include <array>
#include <cassert>
+#include "test_macros.h"
+
// std::array is explicitly allowed to be initialized with A a = { init-list };.
// Disable the missing braces warning for this reason.
#include "disable_missing_braces_warning.h"
@@ -36,7 +38,7 @@ int main()
assert(c.max_size() == 0);
assert(c.empty());
}
-#ifndef _LIBCPP_HAS_NO_CONSTEXPR
+#if TEST_STD_VER >= 11
{
typedef double T;
typedef std::array<T, 3> C;
OpenPOWER on IntegriCloud