96 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// <stack>13 14// Test the feature test macros defined by <stack>15 16// clang-format off17 18#include <stack>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_containers_ranges28# error "__cpp_lib_containers_ranges should not be defined before c++23"29# endif30 31#elif TEST_STD_VER == 1432 33# ifdef __cpp_lib_adaptor_iterator_pair_constructor34# error "__cpp_lib_adaptor_iterator_pair_constructor should not be defined before c++23"35# endif36 37# ifdef __cpp_lib_containers_ranges38# error "__cpp_lib_containers_ranges should not be defined before c++23"39# endif40 41#elif TEST_STD_VER == 1742 43# ifdef __cpp_lib_adaptor_iterator_pair_constructor44# error "__cpp_lib_adaptor_iterator_pair_constructor should not be defined before c++23"45# endif46 47# ifdef __cpp_lib_containers_ranges48# error "__cpp_lib_containers_ranges should not be defined before c++23"49# endif50 51#elif TEST_STD_VER == 2052 53# ifdef __cpp_lib_adaptor_iterator_pair_constructor54# error "__cpp_lib_adaptor_iterator_pair_constructor should not be defined before c++23"55# endif56 57# ifdef __cpp_lib_containers_ranges58# error "__cpp_lib_containers_ranges should not be defined before c++23"59# endif60 61#elif TEST_STD_VER == 2362 63# ifndef __cpp_lib_adaptor_iterator_pair_constructor64# error "__cpp_lib_adaptor_iterator_pair_constructor should be defined in c++23"65# endif66# if __cpp_lib_adaptor_iterator_pair_constructor != 202106L67# error "__cpp_lib_adaptor_iterator_pair_constructor should have the value 202106L in c++23"68# endif69 70# ifndef __cpp_lib_containers_ranges71# error "__cpp_lib_containers_ranges should be defined in c++23"72# endif73# if __cpp_lib_containers_ranges != 202202L74# error "__cpp_lib_containers_ranges should have the value 202202L in 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++26"81# endif82# if __cpp_lib_adaptor_iterator_pair_constructor != 202106L83# error "__cpp_lib_adaptor_iterator_pair_constructor should have the value 202106L in c++26"84# endif85 86# ifndef __cpp_lib_containers_ranges87# error "__cpp_lib_containers_ranges should be defined in c++26"88# endif89# if __cpp_lib_containers_ranges != 202202L90# error "__cpp_lib_containers_ranges should have the value 202202L in c++26"91# endif92 93#endif // TEST_STD_VER > 2394 95// clang-format on96