iomanip.version.pass.cpp 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. // WARNING: This test was generated by generate_feature_test_macros_tests.py and
  11. // should not be edited manually.
  12. // <iomanip>
  13. // Test the feature test macros defined by <iomanip>
  14. /* Constant Value
  15. __cpp_lib_quoted_string_io 201304L [C++14]
  16. */
  17. #include <iomanip>
  18. #include "test_macros.h"
  19. #if TEST_STD_VER < 14
  20. # ifdef __cpp_lib_quoted_string_io
  21. # error "__cpp_lib_quoted_string_io should not be defined before c++14"
  22. # endif
  23. #elif TEST_STD_VER == 14
  24. # ifndef __cpp_lib_quoted_string_io
  25. # error "__cpp_lib_quoted_string_io should be defined in c++14"
  26. # endif
  27. # if __cpp_lib_quoted_string_io != 201304L
  28. # error "__cpp_lib_quoted_string_io should have the value 201304L in c++14"
  29. # endif
  30. #elif TEST_STD_VER == 17
  31. # ifndef __cpp_lib_quoted_string_io
  32. # error "__cpp_lib_quoted_string_io should be defined in c++17"
  33. # endif
  34. # if __cpp_lib_quoted_string_io != 201304L
  35. # error "__cpp_lib_quoted_string_io should have the value 201304L in c++17"
  36. # endif
  37. #elif TEST_STD_VER > 17
  38. # ifndef __cpp_lib_quoted_string_io
  39. # error "__cpp_lib_quoted_string_io should be defined in c++2a"
  40. # endif
  41. # if __cpp_lib_quoted_string_io != 201304L
  42. # error "__cpp_lib_quoted_string_io should have the value 201304L in c++2a"
  43. # endif
  44. #endif // TEST_STD_VER > 17
  45. int main() {}