1 //===----------------------------------------------------------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // UNSUPPORTED: c++98, c++03, c++11
11 // XFAIL: availability
14 // dynarray shall provide support for the special case of construction with a size of zero.
15 // In the case that the size is zero, begin() == end() == unique value.
16 // The return value of data() is unspecified.
17 // The effect of calling front() or back() for a zero-sized dynarray is undefined.
23 #include <experimental/dynarray>
30 using std::experimental::dynarray;
34 typedef dynarray<T> dynA;
37 assert ( d1.size() == 0 );
38 assert ( d1.begin() == d1.end ());
45 test<std::complex<double>> ();