File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
libcxx/test/std/containers/sequences/array Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 2020int main (int , char **) {
2121 {
2222 typedef std::array<int , 0 > C;
23- C c = {};
23+ C c = {};
2424 C const & cc = c;
2525 TEST_LIBCPP_ASSERT_FAILURE (c.back (), " cannot call array<T, 0>::back() on a zero-sized array" );
2626 TEST_LIBCPP_ASSERT_FAILURE (cc.back (), " cannot call array<T, 0>::back() on a zero-sized array" );
2727 }
2828 {
2929 typedef std::array<const int , 0 > C;
30- C c = {{}};
30+ C c = {{}};
3131 C const & cc = c;
3232 TEST_LIBCPP_ASSERT_FAILURE (c.back (), " cannot call array<T, 0>::back() on a zero-sized array" );
3333 TEST_LIBCPP_ASSERT_FAILURE (cc.back (), " cannot call array<T, 0>::back() on a zero-sized array" );
Original file line number Diff line number Diff line change 2020int main (int , char **) {
2121 {
2222 typedef std::array<int , 0 > C;
23- C c = {};
23+ C c = {};
2424 C const & cc = c;
2525 TEST_LIBCPP_ASSERT_FAILURE (c.front (), " cannot call array<T, 0>::front() on a zero-sized array" );
2626 TEST_LIBCPP_ASSERT_FAILURE (cc.front (), " cannot call array<T, 0>::front() on a zero-sized array" );
2727 }
2828 {
2929 typedef std::array<const int , 0 > C;
30- C c = {{}};
30+ C c = {{}};
3131 C const & cc = c;
3232 TEST_LIBCPP_ASSERT_FAILURE (c.front (), " cannot call array<T, 0>::front() on a zero-sized array" );
3333 TEST_LIBCPP_ASSERT_FAILURE (cc.front (), " cannot call array<T, 0>::front() on a zero-sized array" );
You can’t perform that action at this time.
0 commit comments