iomanip.version.pass.cpp (1667B)
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_macro_components.py 11 // and should not be edited manually. 12 13 // <iomanip> 14 15 // Test the feature test macros defined by <iomanip> 16 17 /* Constant Value 18 __cpp_lib_quoted_string_io 201304L [C++14] 19 */ 20 21 #include <iomanip> 22 #include "test_macros.h" 23 24 #if TEST_STD_VER < 14 25 26 # ifdef __cpp_lib_quoted_string_io 27 # error "__cpp_lib_quoted_string_io should not be defined before c++14" 28 # endif 29 30 #elif TEST_STD_VER == 14 31 32 # ifndef __cpp_lib_quoted_string_io 33 # error "__cpp_lib_quoted_string_io should be defined in c++14" 34 # endif 35 # if __cpp_lib_quoted_string_io != 201304L 36 # error "__cpp_lib_quoted_string_io should have the value 201304L in c++14" 37 # endif 38 39 #elif TEST_STD_VER == 17 40 41 # ifndef __cpp_lib_quoted_string_io 42 # error "__cpp_lib_quoted_string_io should be defined in c++17" 43 # endif 44 # if __cpp_lib_quoted_string_io != 201304L 45 # error "__cpp_lib_quoted_string_io should have the value 201304L in c++17" 46 # endif 47 48 #elif TEST_STD_VER > 17 49 50 # ifndef __cpp_lib_quoted_string_io 51 # error "__cpp_lib_quoted_string_io should be defined in c++2a" 52 # endif 53 # if __cpp_lib_quoted_string_io != 201304L 54 # error "__cpp_lib_quoted_string_io should have the value 201304L in c++2a" 55 # endif 56 57 #endif // TEST_STD_VER > 17 58 59 int main() {}