summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/containers/sequences/dynarray/dynarray.zero/default.pass.cpp
diff options
context:
space:
mode:
authorMarshall Clow <mclow.lists@gmail.com>2015-03-04 23:09:15 +0000
committerMarshall Clow <mclow.lists@gmail.com>2015-03-04 23:09:15 +0000
commitb844b1a0ffc29ae18aa6dc36c060366ad91e7955 (patch)
tree7338bdfb06304c4ef075abf71bf537349e0071d3 /libcxx/test/std/containers/sequences/dynarray/dynarray.zero/default.pass.cpp
parent53ed89c6da24c2fa45bea84ddc9742f9bea0db14 (diff)
downloadbcm5719-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.zero/default.pass.cpp')
-rw-r--r--libcxx/test/std/containers/sequences/dynarray/dynarray.zero/default.pass.cpp50
1 files changed, 0 insertions, 50 deletions
diff --git a/libcxx/test/std/containers/sequences/dynarray/dynarray.zero/default.pass.cpp b/libcxx/test/std/containers/sequences/dynarray/dynarray.zero/default.pass.cpp
deleted file mode 100644
index 93f3b18f192..00000000000
--- a/libcxx/test/std/containers/sequences/dynarray/dynarray.zero/default.pass.cpp
+++ /dev/null
@@ -1,50 +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.zero
-
-// dynarray shall provide support for the special case of construction with a size of zero.
-// In the case that the size is zero, begin() == end() == unique value.
-// The return value of data() is unspecified.
-// The effect of calling front() or back() for a zero-sized dynarray is undefined.
-
-
-
-#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 test ( ) {
- typedef dynarray<T> dynA;
-
- dynA d1 ( 0 );
- assert ( d1.size() == 0 );
- assert ( d1.begin() == d1.end ());
- }
-
-int main()
-{
- test<int> ();
- test<double> ();
- test<std::complex<double>> ();
- test<std::string> ();
-}
-#else
-int main() {}
-#endif
OpenPOWER on IntegriCloud