From b844b1a0ffc29ae18aa6dc36c060366ad91e7955 Mon Sep 17 00:00:00 2001 From: Marshall Clow Date: Wed, 4 Mar 2015 23:09:15 +0000 Subject: Move the tests out of the std/ hierarchy, since it's not really part of the standard any more. llvm-svn: 231311 --- .../dynarray/dynarray.data/default.pass.cpp | 67 ---------------------- 1 file changed, 67 deletions(-) delete mode 100644 libcxx/test/std/containers/sequences/dynarray/dynarray.data/default.pass.cpp (limited to 'libcxx/test/std/containers/sequences/dynarray/dynarray.data') diff --git a/libcxx/test/std/containers/sequences/dynarray/dynarray.data/default.pass.cpp b/libcxx/test/std/containers/sequences/dynarray/dynarray.data/default.pass.cpp deleted file mode 100644 index b669f25948e..00000000000 --- a/libcxx/test/std/containers/sequences/dynarray/dynarray.data/default.pass.cpp +++ /dev/null @@ -1,67 +0,0 @@ -//===----------------------------------------------------------------------===// -// -// The LLVM Compiler Infrastructure -// -// This file is dual licensed under the MIT and the University of Illinois Open -// Source Licenses. See LICENSE.TXT for details. -// -//===----------------------------------------------------------------------===// - -// dynarray.data - -// T* data() noexcept; -// const T* data() const noexcept; - - -#include <__config> - -#if _LIBCPP_STD_VER > 11 - -#include -#include - -#include -#include -#include - -using std::experimental::dynarray; - -template -void dyn_test_const ( const dynarray &dyn ) { - const T *data = dyn.data (); - assert ( data != NULL ); - assert ( std::equal ( dyn.begin(), dyn.end(), data )); - } - -template -void dyn_test ( dynarray &dyn ) { - T *data = dyn.data (); - assert ( data != NULL ); - assert ( std::equal ( dyn.begin(), dyn.end(), data )); - } - - - -template -void test ( const T &val ) { - typedef dynarray dynA; - - dynA d1 ( 4 ); - dyn_test ( d1 ); - dyn_test_const ( d1 ); - - dynA d2 ( 7, val ); - dyn_test ( d2 ); - dyn_test_const ( d2 ); - } - -int main() -{ - test ( 14 ); - test ( 14.0 ); - test> ( std::complex ( 14, 0 )); - test ( "fourteen" ); -} -#else -int main() {} -#endif -- cgit v1.2.3