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