summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/containers/sequences/array/indexing.pass.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx/test/std/containers/sequences/array/indexing.pass.cpp')
-rw-r--r--libcxx/test/std/containers/sequences/array/indexing.pass.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/libcxx/test/std/containers/sequences/array/indexing.pass.cpp b/libcxx/test/std/containers/sequences/array/indexing.pass.cpp
index e4dda0dc5cf..c550d141bcb 100644
--- a/libcxx/test/std/containers/sequences/array/indexing.pass.cpp
+++ b/libcxx/test/std/containers/sequences/array/indexing.pass.cpp
@@ -17,6 +17,10 @@
#include <array>
#include <cassert>
+#include "test_macros.h"
+
+#include "suppress_array_warnings.h"
+
int main()
{
{
@@ -42,13 +46,13 @@ int main()
C::const_reference r2 = c[2];
assert(r2 == 3.5);
}
-
-#if _LIBCPP_STD_VER > 11
+
+#if TEST_STD_VER > 11
{
typedef double T;
typedef std::array<T, 3> C;
constexpr C c = {1, 2, 3.5};
-
+
constexpr T t1 = c[0];
static_assert (t1 == 1, "");
OpenPOWER on IntegriCloud