memory.version.pass.cpp 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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. // <memory> feature macros
  11. /* Constant Value
  12. __cpp_lib_addressof_constexpr 201603L
  13. __cpp_lib_allocator_traits_is_always_equal 201411L
  14. __cpp_lib_enable_shared_from_this 201603L
  15. __cpp_lib_make_unique 201304L
  16. __cpp_lib_raw_memory_algorithms 201606L
  17. __cpp_lib_shared_ptr_arrays 201611L
  18. __cpp_lib_shared_ptr_weak_type 201606L
  19. __cpp_lib_transparent_operators 201510L
  20. */
  21. #include <memory>
  22. #include "test_macros.h"
  23. int main()
  24. {
  25. // ensure that the macros that are supposed to be defined in <memory> are defined.
  26. /*
  27. #if !defined(__cpp_lib_fooby)
  28. # error "__cpp_lib_fooby is not defined"
  29. #elif __cpp_lib_fooby < 201606L
  30. # error "__cpp_lib_fooby has an invalid value"
  31. #endif
  32. */
  33. }