chrono.version.pass.cpp 866 B

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