diff --git a/libcxx/test/std/containers/sequences/array/assert.back.pass.cpp b/libcxx/test/std/containers/sequences/array/assert.back.pass.cpp index c20b0c9a804f26..b9dec01033334a 100644 --- a/libcxx/test/std/containers/sequences/array/assert.back.pass.cpp +++ b/libcxx/test/std/containers/sequences/array/assert.back.pass.cpp @@ -20,14 +20,14 @@ int main(int, char**) { { typedef std::array C; - C c = {}; + C c = {}; C const& cc = c; TEST_LIBCPP_ASSERT_FAILURE(c.back(), "cannot call array::back() on a zero-sized array"); TEST_LIBCPP_ASSERT_FAILURE(cc.back(), "cannot call array::back() on a zero-sized array"); } { typedef std::array C; - C c = {{}}; + C c = {{}}; C const& cc = c; TEST_LIBCPP_ASSERT_FAILURE(c.back(), "cannot call array::back() on a zero-sized array"); TEST_LIBCPP_ASSERT_FAILURE(cc.back(), "cannot call array::back() on a zero-sized array"); diff --git a/libcxx/test/std/containers/sequences/array/assert.front.pass.cpp b/libcxx/test/std/containers/sequences/array/assert.front.pass.cpp index 7dbbd6f0abc07a..67a70a1d63c521 100644 --- a/libcxx/test/std/containers/sequences/array/assert.front.pass.cpp +++ b/libcxx/test/std/containers/sequences/array/assert.front.pass.cpp @@ -20,14 +20,14 @@ int main(int, char**) { { typedef std::array C; - C c = {}; + C c = {}; C const& cc = c; TEST_LIBCPP_ASSERT_FAILURE(c.front(), "cannot call array::front() on a zero-sized array"); TEST_LIBCPP_ASSERT_FAILURE(cc.front(), "cannot call array::front() on a zero-sized array"); } { typedef std::array C; - C c = {{}}; + C c = {{}}; C const& cc = c; TEST_LIBCPP_ASSERT_FAILURE(c.front(), "cannot call array::front() on a zero-sized array"); TEST_LIBCPP_ASSERT_FAILURE(cc.front(), "cannot call array::front() on a zero-sized array");