brintos

brintos / llvm-project-archived public Read only

0
0
Text · 3.1 KiB · 9a3a644 Raw
108 lines · cpp
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-exception6//7//===----------------------------------------------------------------------===//8 9// WARNING: This test was generated by generate_feature_test_macro_components.py10// and should not be edited manually.11 12// <complex>13 14// Test the feature test macros defined by <complex>15 16// clang-format off17 18#include <complex>19#include "test_macros.h"20 21#if TEST_STD_VER < 1422 23#  ifdef __cpp_lib_complex_udls24#    error "__cpp_lib_complex_udls should not be defined before c++14"25#  endif26 27#  ifdef __cpp_lib_constexpr_complex28#    error "__cpp_lib_constexpr_complex should not be defined before c++20"29#  endif30 31#elif TEST_STD_VER == 1432 33#  ifndef __cpp_lib_complex_udls34#    error "__cpp_lib_complex_udls should be defined in c++14"35#  endif36#  if __cpp_lib_complex_udls != 201309L37#    error "__cpp_lib_complex_udls should have the value 201309L in c++14"38#  endif39 40#  ifdef __cpp_lib_constexpr_complex41#    error "__cpp_lib_constexpr_complex should not be defined before c++20"42#  endif43 44#elif TEST_STD_VER == 1745 46#  ifndef __cpp_lib_complex_udls47#    error "__cpp_lib_complex_udls should be defined in c++17"48#  endif49#  if __cpp_lib_complex_udls != 201309L50#    error "__cpp_lib_complex_udls should have the value 201309L in c++17"51#  endif52 53#  ifdef __cpp_lib_constexpr_complex54#    error "__cpp_lib_constexpr_complex should not be defined before c++20"55#  endif56 57#elif TEST_STD_VER == 2058 59#  ifndef __cpp_lib_complex_udls60#    error "__cpp_lib_complex_udls should be defined in c++20"61#  endif62#  if __cpp_lib_complex_udls != 201309L63#    error "__cpp_lib_complex_udls should have the value 201309L in c++20"64#  endif65 66#  ifndef __cpp_lib_constexpr_complex67#    error "__cpp_lib_constexpr_complex should be defined in c++20"68#  endif69#  if __cpp_lib_constexpr_complex != 201711L70#    error "__cpp_lib_constexpr_complex should have the value 201711L in c++20"71#  endif72 73#elif TEST_STD_VER == 2374 75#  ifndef __cpp_lib_complex_udls76#    error "__cpp_lib_complex_udls should be defined in c++23"77#  endif78#  if __cpp_lib_complex_udls != 201309L79#    error "__cpp_lib_complex_udls should have the value 201309L in c++23"80#  endif81 82#  ifndef __cpp_lib_constexpr_complex83#    error "__cpp_lib_constexpr_complex should be defined in c++23"84#  endif85#  if __cpp_lib_constexpr_complex != 201711L86#    error "__cpp_lib_constexpr_complex should have the value 201711L in c++23"87#  endif88 89#elif TEST_STD_VER > 2390 91#  ifndef __cpp_lib_complex_udls92#    error "__cpp_lib_complex_udls should be defined in c++26"93#  endif94#  if __cpp_lib_complex_udls != 201309L95#    error "__cpp_lib_complex_udls should have the value 201309L in c++26"96#  endif97 98#  ifndef __cpp_lib_constexpr_complex99#    error "__cpp_lib_constexpr_complex should be defined in c++26"100#  endif101#  if __cpp_lib_constexpr_complex != 201711L102#    error "__cpp_lib_constexpr_complex should have the value 201711L in c++26"103#  endif104 105#endif // TEST_STD_VER > 23106 107// clang-format on108