brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.9 KiB · 8445aa3 Raw
69 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// <cstring>13 14// Test the feature test macros defined by <cstring>15 16// clang-format off17 18#include <cstring>19#include "test_macros.h"20 21#if TEST_STD_VER < 1422 23#  ifdef __cpp_lib_freestanding_cstring24#    error "__cpp_lib_freestanding_cstring should not be defined before c++26"25#  endif26 27#elif TEST_STD_VER == 1428 29#  ifdef __cpp_lib_freestanding_cstring30#    error "__cpp_lib_freestanding_cstring should not be defined before c++26"31#  endif32 33#elif TEST_STD_VER == 1734 35#  ifdef __cpp_lib_freestanding_cstring36#    error "__cpp_lib_freestanding_cstring should not be defined before c++26"37#  endif38 39#elif TEST_STD_VER == 2040 41#  ifdef __cpp_lib_freestanding_cstring42#    error "__cpp_lib_freestanding_cstring should not be defined before c++26"43#  endif44 45#elif TEST_STD_VER == 2346 47#  ifdef __cpp_lib_freestanding_cstring48#    error "__cpp_lib_freestanding_cstring should not be defined before c++26"49#  endif50 51#elif TEST_STD_VER > 2352 53#  if !defined(_LIBCPP_VERSION)54#    ifndef __cpp_lib_freestanding_cstring55#      error "__cpp_lib_freestanding_cstring should be defined in c++26"56#    endif57#    if __cpp_lib_freestanding_cstring != 202306L58#      error "__cpp_lib_freestanding_cstring should have the value 202306L in c++26"59#    endif60#  else61#    ifdef __cpp_lib_freestanding_cstring62#      error "__cpp_lib_freestanding_cstring should not be defined because it is unimplemented in libc++!"63#    endif64#  endif65 66#endif // TEST_STD_VER > 2367 68// clang-format on69