diff options
| author | Marshall Clow <mclow.lists@gmail.com> | 2015-03-04 23:09:15 +0000 |
|---|---|---|
| committer | Marshall Clow <mclow.lists@gmail.com> | 2015-03-04 23:09:15 +0000 |
| commit | b844b1a0ffc29ae18aa6dc36c060366ad91e7955 (patch) | |
| tree | 7338bdfb06304c4ef075abf71bf537349e0071d3 /libcxx/test/std/containers/sequences/dynarray/dynarray.data | |
| parent | 53ed89c6da24c2fa45bea84ddc9742f9bea0db14 (diff) | |
| download | bcm5719-llvm-b844b1a0ffc29ae18aa6dc36c060366ad91e7955.tar.gz bcm5719-llvm-b844b1a0ffc29ae18aa6dc36c060366ad91e7955.zip | |
Move the <dynarray> tests out of the std/ hierarchy, since it's not really part of the standard any more.
llvm-svn: 231311
Diffstat (limited to 'libcxx/test/std/containers/sequences/dynarray/dynarray.data')
| -rw-r--r-- | libcxx/test/std/containers/sequences/dynarray/dynarray.data/default.pass.cpp | 67 |
1 files changed, 0 insertions, 67 deletions
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 <experimental/dynarray> -#include <cassert> - -#include <algorithm> -#include <complex> -#include <string> - -using std::experimental::dynarray; - -template <class T> -void dyn_test_const ( const dynarray<T> &dyn ) { - const T *data = dyn.data (); - assert ( data != NULL ); - assert ( std::equal ( dyn.begin(), dyn.end(), data )); - } - -template <class T> -void dyn_test ( dynarray<T> &dyn ) { - T *data = dyn.data (); - assert ( data != NULL ); - assert ( std::equal ( dyn.begin(), dyn.end(), data )); - } - - - -template <class T> -void test ( const T &val ) { - typedef dynarray<T> 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<int> ( 14 ); - test<double> ( 14.0 ); - test<std::complex<double>> ( std::complex<double> ( 14, 0 )); - test<std::string> ( "fourteen" ); -} -#else -int main() {} -#endif |

