From 936ff58476a9bd12152dd67ca28ce2ed08e97b84 Mon Sep 17 00:00:00 2001 From: Nirav Dave Date: Tue, 6 Feb 2018 03:03:37 +0000 Subject: Revert "[libc++] Fix PR35491 - std::array of zero-size doesn't work with non-default constructible types." Revert "Fix initialization of array with GCC." Revert "Make array non-CopyAssignable and make swap and fill ill-formed." This reverts commit r324182, r324185, and r324194 which were causing issues with zero-length std::arrays. llvm-svn: 324309 --- .../containers/sequences/array/array.data/data_const.pass.cpp | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'libcxx/test/std/containers/sequences/array/array.data/data_const.pass.cpp') diff --git a/libcxx/test/std/containers/sequences/array/array.data/data_const.pass.cpp b/libcxx/test/std/containers/sequences/array/array.data/data_const.pass.cpp index f10d51580dd..5be082eeb84 100644 --- a/libcxx/test/std/containers/sequences/array/array.data/data_const.pass.cpp +++ b/libcxx/test/std/containers/sequences/array/array.data/data_const.pass.cpp @@ -38,16 +38,6 @@ int main() const T* p = c.data(); (void)p; // to placate scan-build } - { - struct NoDefault { - NoDefault(int) {} - }; - typedef NoDefault T; - typedef std::array C; - const C c = {}; - const T* p = c.data(); - assert(p != nullptr); - } #if TEST_STD_VER > 14 { typedef std::array C; -- cgit v1.2.3