74 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// UNSUPPORTED: no-localization13 14// <regex>15 16// Test the feature test macros defined by <regex>17 18// clang-format off19 20#include <regex>21#include "test_macros.h"22 23#if TEST_STD_VER < 1424 25# ifdef __cpp_lib_nonmember_container_access26# error "__cpp_lib_nonmember_container_access should not be defined before c++17"27# endif28 29#elif TEST_STD_VER == 1430 31# ifdef __cpp_lib_nonmember_container_access32# error "__cpp_lib_nonmember_container_access should not be defined before c++17"33# endif34 35#elif TEST_STD_VER == 1736 37# ifndef __cpp_lib_nonmember_container_access38# error "__cpp_lib_nonmember_container_access should be defined in c++17"39# endif40# if __cpp_lib_nonmember_container_access != 201411L41# error "__cpp_lib_nonmember_container_access should have the value 201411L in c++17"42# endif43 44#elif TEST_STD_VER == 2045 46# ifndef __cpp_lib_nonmember_container_access47# error "__cpp_lib_nonmember_container_access should be defined in c++20"48# endif49# if __cpp_lib_nonmember_container_access != 201411L50# error "__cpp_lib_nonmember_container_access should have the value 201411L in c++20"51# endif52 53#elif TEST_STD_VER == 2354 55# ifndef __cpp_lib_nonmember_container_access56# error "__cpp_lib_nonmember_container_access should be defined in c++23"57# endif58# if __cpp_lib_nonmember_container_access != 201411L59# error "__cpp_lib_nonmember_container_access should have the value 201411L in c++23"60# endif61 62#elif TEST_STD_VER > 2363 64# ifndef __cpp_lib_nonmember_container_access65# error "__cpp_lib_nonmember_container_access should be defined in c++26"66# endif67# if __cpp_lib_nonmember_container_access != 201411L68# error "__cpp_lib_nonmember_container_access should have the value 201411L in c++26"69# endif70 71#endif // TEST_STD_VER > 2372 73// clang-format on74