brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.4 KiB · 8799a1f Raw
93 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// <bitset>13 14// Test the feature test macros defined by <bitset>15 16// clang-format off17 18#include <bitset>19#include "test_macros.h"20 21#if TEST_STD_VER < 1422 23#  ifdef __cpp_lib_bitset24#    error "__cpp_lib_bitset should not be defined before c++26"25#  endif26 27#  ifdef __cpp_lib_constexpr_bitset28#    error "__cpp_lib_constexpr_bitset should not be defined before c++23"29#  endif30 31#elif TEST_STD_VER == 1432 33#  ifdef __cpp_lib_bitset34#    error "__cpp_lib_bitset should not be defined before c++26"35#  endif36 37#  ifdef __cpp_lib_constexpr_bitset38#    error "__cpp_lib_constexpr_bitset should not be defined before c++23"39#  endif40 41#elif TEST_STD_VER == 1742 43#  ifdef __cpp_lib_bitset44#    error "__cpp_lib_bitset should not be defined before c++26"45#  endif46 47#  ifdef __cpp_lib_constexpr_bitset48#    error "__cpp_lib_constexpr_bitset should not be defined before c++23"49#  endif50 51#elif TEST_STD_VER == 2052 53#  ifdef __cpp_lib_bitset54#    error "__cpp_lib_bitset should not be defined before c++26"55#  endif56 57#  ifdef __cpp_lib_constexpr_bitset58#    error "__cpp_lib_constexpr_bitset should not be defined before c++23"59#  endif60 61#elif TEST_STD_VER == 2362 63#  ifdef __cpp_lib_bitset64#    error "__cpp_lib_bitset should not be defined before c++26"65#  endif66 67#  ifndef __cpp_lib_constexpr_bitset68#    error "__cpp_lib_constexpr_bitset should be defined in c++23"69#  endif70#  if __cpp_lib_constexpr_bitset != 202207L71#    error "__cpp_lib_constexpr_bitset should have the value 202207L in c++23"72#  endif73 74#elif TEST_STD_VER > 2375 76#  ifndef __cpp_lib_bitset77#    error "__cpp_lib_bitset should be defined in c++26"78#  endif79#  if __cpp_lib_bitset != 202306L80#    error "__cpp_lib_bitset should have the value 202306L in c++26"81#  endif82 83#  ifndef __cpp_lib_constexpr_bitset84#    error "__cpp_lib_constexpr_bitset should be defined in c++26"85#  endif86#  if __cpp_lib_constexpr_bitset != 202207L87#    error "__cpp_lib_constexpr_bitset should have the value 202207L in c++26"88#  endif89 90#endif // TEST_STD_VER > 2391 92// clang-format on93