default.pass.cpp 761 B

12345678910111213141516171819202122232425262728293031
  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. // dynarray.data
  10. // template <class Type, class Alloc>
  11. // struct uses_allocator<dynarray<Type>, Alloc> : true_type { };
  12. #include <__config>
  13. #if _LIBCPP_STD_VER > 11
  14. #include <experimental/dynarray>
  15. #include "test_allocator.h"
  16. using std::experimental::dynarray;
  17. int main()
  18. {
  19. static_assert ( std::uses_allocator<dynarray<int>, test_allocator<int>>::value, "" );
  20. }
  21. #else
  22. int main() {}
  23. #endif