diff options
Diffstat (limited to 'libcxx/test/std/containers/sequences/array/front_back.pass.cpp')
| -rw-r--r-- | libcxx/test/std/containers/sequences/array/front_back.pass.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/libcxx/test/std/containers/sequences/array/front_back.pass.cpp b/libcxx/test/std/containers/sequences/array/front_back.pass.cpp index 45a963b9947..ebe3a180388 100644 --- a/libcxx/test/std/containers/sequences/array/front_back.pass.cpp +++ b/libcxx/test/std/containers/sequences/array/front_back.pass.cpp @@ -17,6 +17,10 @@ #include <array> #include <cassert> +#include "test_macros.h" + +#include "suppress_array_warnings.h" + int main() { { @@ -45,12 +49,12 @@ int main() 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.front(); static_assert (t1 == 1, ""); |

