tuple.version.pass.cpp 975 B

1234567891011121314151617181920212223242526272829303132333435
  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. // <tuple> feature macros
  11. /* Constant Value
  12. __cpp_lib_apply 201603L
  13. __cpp_lib_make_from_tuple 201606L
  14. __cpp_lib_tuple_element_t 201402L
  15. __cpp_lib_tuples_by_type 201304L
  16. */
  17. #include <tuple>
  18. #include "test_macros.h"
  19. int main()
  20. {
  21. // ensure that the macros that are supposed to be defined in <tuple> are defined.
  22. /*
  23. #if !defined(__cpp_lib_fooby)
  24. # error "__cpp_lib_fooby is not defined"
  25. #elif __cpp_lib_fooby < 201606L
  26. # error "__cpp_lib_fooby has an invalid value"
  27. #endif
  28. */
  29. }