brintos

brintos / llvm-project-archived public Read only

0
0
Text · 3.8 KiB · db32433 Raw
123 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// <queue>13 14// Test the feature test macros defined by <queue>15 16// clang-format off17 18#include <queue>19#include "test_macros.h"20 21#if TEST_STD_VER < 1422 23#  ifdef __cpp_lib_adaptor_iterator_pair_constructor24#    error "__cpp_lib_adaptor_iterator_pair_constructor should not be defined before c++23"25#  endif26 27#  ifdef __cpp_lib_constexpr_queue28#    error "__cpp_lib_constexpr_queue should not be defined before c++26"29#  endif30 31#  ifdef __cpp_lib_containers_ranges32#    error "__cpp_lib_containers_ranges should not be defined before c++23"33#  endif34 35#elif TEST_STD_VER == 1436 37#  ifdef __cpp_lib_adaptor_iterator_pair_constructor38#    error "__cpp_lib_adaptor_iterator_pair_constructor should not be defined before c++23"39#  endif40 41#  ifdef __cpp_lib_constexpr_queue42#    error "__cpp_lib_constexpr_queue should not be defined before c++26"43#  endif44 45#  ifdef __cpp_lib_containers_ranges46#    error "__cpp_lib_containers_ranges should not be defined before c++23"47#  endif48 49#elif TEST_STD_VER == 1750 51#  ifdef __cpp_lib_adaptor_iterator_pair_constructor52#    error "__cpp_lib_adaptor_iterator_pair_constructor should not be defined before c++23"53#  endif54 55#  ifdef __cpp_lib_constexpr_queue56#    error "__cpp_lib_constexpr_queue should not be defined before c++26"57#  endif58 59#  ifdef __cpp_lib_containers_ranges60#    error "__cpp_lib_containers_ranges should not be defined before c++23"61#  endif62 63#elif TEST_STD_VER == 2064 65#  ifdef __cpp_lib_adaptor_iterator_pair_constructor66#    error "__cpp_lib_adaptor_iterator_pair_constructor should not be defined before c++23"67#  endif68 69#  ifdef __cpp_lib_constexpr_queue70#    error "__cpp_lib_constexpr_queue should not be defined before c++26"71#  endif72 73#  ifdef __cpp_lib_containers_ranges74#    error "__cpp_lib_containers_ranges should not be defined before c++23"75#  endif76 77#elif TEST_STD_VER == 2378 79#  ifndef __cpp_lib_adaptor_iterator_pair_constructor80#    error "__cpp_lib_adaptor_iterator_pair_constructor should be defined in c++23"81#  endif82#  if __cpp_lib_adaptor_iterator_pair_constructor != 202106L83#    error "__cpp_lib_adaptor_iterator_pair_constructor should have the value 202106L in c++23"84#  endif85 86#  ifdef __cpp_lib_constexpr_queue87#    error "__cpp_lib_constexpr_queue should not be defined before c++26"88#  endif89 90#  ifndef __cpp_lib_containers_ranges91#    error "__cpp_lib_containers_ranges should be defined in c++23"92#  endif93#  if __cpp_lib_containers_ranges != 202202L94#    error "__cpp_lib_containers_ranges should have the value 202202L in c++23"95#  endif96 97#elif TEST_STD_VER > 2398 99#  ifndef __cpp_lib_adaptor_iterator_pair_constructor100#    error "__cpp_lib_adaptor_iterator_pair_constructor should be defined in c++26"101#  endif102#  if __cpp_lib_adaptor_iterator_pair_constructor != 202106L103#    error "__cpp_lib_adaptor_iterator_pair_constructor should have the value 202106L in c++26"104#  endif105 106#  ifndef __cpp_lib_constexpr_queue107#    error "__cpp_lib_constexpr_queue should be defined in c++26"108#  endif109#  if __cpp_lib_constexpr_queue != 202502L110#    error "__cpp_lib_constexpr_queue should have the value 202502L in c++26"111#  endif112 113#  ifndef __cpp_lib_containers_ranges114#    error "__cpp_lib_containers_ranges should be defined in c++26"115#  endif116#  if __cpp_lib_containers_ranges != 202202L117#    error "__cpp_lib_containers_ranges should have the value 202202L in c++26"118#  endif119 120#endif // TEST_STD_VER > 23121 122// clang-format on123