1 //===----------------------------------------------------------------------===// 2 // 3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4 // See https://llvm.org/LICENSE.txt for license information. 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 // 7 //===----------------------------------------------------------------------===// 8 // 9 // WARNING: This test was generated by generate_feature_test_macro_components.py 10 // and should not be edited manually. 11 // 12 // clang-format off 13 14 // UNSUPPORTED: no-localization 15 16 // <iomanip> 17 18 // Test the feature test macros defined by <iomanip> 19 20 /* Constant Value 21 __cpp_lib_quoted_string_io 201304L [C++14] 22 */ 23 24 #include <iomanip> 25 #include "test_macros.h" 26 27 #if TEST_STD_VER < 14 28 29 # ifdef __cpp_lib_quoted_string_io 30 # error "__cpp_lib_quoted_string_io should not be defined before c++14" 31 # endif 32 33 #elif TEST_STD_VER == 14 34 35 # ifndef __cpp_lib_quoted_string_io 36 # error "__cpp_lib_quoted_string_io should be defined in c++14" 37 # endif 38 # if __cpp_lib_quoted_string_io != 201304L 39 # error "__cpp_lib_quoted_string_io should have the value 201304L in c++14" 40 # endif 41 42 #elif TEST_STD_VER == 17 43 44 # ifndef __cpp_lib_quoted_string_io 45 # error "__cpp_lib_quoted_string_io should be defined in c++17" 46 # endif 47 # if __cpp_lib_quoted_string_io != 201304L 48 # error "__cpp_lib_quoted_string_io should have the value 201304L in c++17" 49 # endif 50 51 #elif TEST_STD_VER == 20 52 53 # ifndef __cpp_lib_quoted_string_io 54 # error "__cpp_lib_quoted_string_io should be defined in c++20" 55 # endif 56 # if __cpp_lib_quoted_string_io != 201304L 57 # error "__cpp_lib_quoted_string_io should have the value 201304L in c++20" 58 # endif 59 60 #elif TEST_STD_VER > 20 61 62 # ifndef __cpp_lib_quoted_string_io 63 # error "__cpp_lib_quoted_string_io should be defined in c++2b" 64 # endif 65 # if __cpp_lib_quoted_string_io != 201304L 66 # error "__cpp_lib_quoted_string_io should have the value 201304L in c++2b" 67 # endif 68 69 #endif // TEST_STD_VER > 20 70 71