algorithm.version.pass.cpp 1.0 KB

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