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
15 // void fill(const T& v);
16 // const T* data() const noexcept;
21 #include <experimental/dynarray>
28 using std::experimental::dynarray;
31 void test ( const T &val ) {
32 typedef dynarray<T> dynA;
36 assert ( std::all_of ( d1.begin (), d1.end (),
37 [&val]( const T &item ){ return item == val; } ));
43 test<double> ( 14.0 );
44 test<std::complex<double>> ( std::complex<double> ( 14, 0 ));
45 test<std::string> ( "fourteen" );