1 //===----------------------------------------------------------------------===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 
10 // dynarray.data
11 
12 // template <class Type, class Alloc>
13 //   struct uses_allocator<dynarray<Type>, Alloc> : true_type { };
14 
15 
16 #include <__config>
17 
18 #if _LIBCPP_STD_VER > 11
19 
20 #include <experimental/dynarray>
21 #include "test_allocator.h"
22 
23 using std::experimental::dynarray;
24 
main()25 int main()
26 {
27     static_assert ( std::uses_allocator<dynarray<int>, test_allocator<int>>::value, "" );
28 }
29 #else
main()30 int main() {}
31 #endif
32