brintos

brintos / llvm-project-archived public Read only

0
0
Text · 3.6 KiB · 4de327c Raw
107 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// <iomanip>15 16// Test the feature test macros defined by <iomanip>17 18// clang-format off19 20#include <iomanip>21#include "test_macros.h"22 23#if TEST_STD_VER < 1424 25#  ifdef __cpp_lib_quoted_string_io26#    error "__cpp_lib_quoted_string_io should not be defined before c++14"27#  endif28 29#elif TEST_STD_VER == 1430 31#  if !defined(_LIBCPP_VERSION) || _LIBCPP_HAS_LOCALIZATION32#    ifndef __cpp_lib_quoted_string_io33#      error "__cpp_lib_quoted_string_io should be defined in c++14"34#    endif35#    if __cpp_lib_quoted_string_io != 201304L36#      error "__cpp_lib_quoted_string_io should have the value 201304L in c++14"37#    endif38#  else39#    ifdef __cpp_lib_quoted_string_io40#      error "__cpp_lib_quoted_string_io should not be defined when the requirement '!defined(_LIBCPP_VERSION) || _LIBCPP_HAS_LOCALIZATION' is not met!"41#    endif42#  endif43 44#elif TEST_STD_VER == 1745 46#  if !defined(_LIBCPP_VERSION) || _LIBCPP_HAS_LOCALIZATION47#    ifndef __cpp_lib_quoted_string_io48#      error "__cpp_lib_quoted_string_io should be defined in c++17"49#    endif50#    if __cpp_lib_quoted_string_io != 201304L51#      error "__cpp_lib_quoted_string_io should have the value 201304L in c++17"52#    endif53#  else54#    ifdef __cpp_lib_quoted_string_io55#      error "__cpp_lib_quoted_string_io should not be defined when the requirement '!defined(_LIBCPP_VERSION) || _LIBCPP_HAS_LOCALIZATION' is not met!"56#    endif57#  endif58 59#elif TEST_STD_VER == 2060 61#  if !defined(_LIBCPP_VERSION) || _LIBCPP_HAS_LOCALIZATION62#    ifndef __cpp_lib_quoted_string_io63#      error "__cpp_lib_quoted_string_io should be defined in c++20"64#    endif65#    if __cpp_lib_quoted_string_io != 201304L66#      error "__cpp_lib_quoted_string_io should have the value 201304L in c++20"67#    endif68#  else69#    ifdef __cpp_lib_quoted_string_io70#      error "__cpp_lib_quoted_string_io should not be defined when the requirement '!defined(_LIBCPP_VERSION) || _LIBCPP_HAS_LOCALIZATION' is not met!"71#    endif72#  endif73 74#elif TEST_STD_VER == 2375 76#  if !defined(_LIBCPP_VERSION) || _LIBCPP_HAS_LOCALIZATION77#    ifndef __cpp_lib_quoted_string_io78#      error "__cpp_lib_quoted_string_io should be defined in c++23"79#    endif80#    if __cpp_lib_quoted_string_io != 201304L81#      error "__cpp_lib_quoted_string_io should have the value 201304L in c++23"82#    endif83#  else84#    ifdef __cpp_lib_quoted_string_io85#      error "__cpp_lib_quoted_string_io should not be defined when the requirement '!defined(_LIBCPP_VERSION) || _LIBCPP_HAS_LOCALIZATION' is not met!"86#    endif87#  endif88 89#elif TEST_STD_VER > 2390 91#  if !defined(_LIBCPP_VERSION) || _LIBCPP_HAS_LOCALIZATION92#    ifndef __cpp_lib_quoted_string_io93#      error "__cpp_lib_quoted_string_io should be defined in c++26"94#    endif95#    if __cpp_lib_quoted_string_io != 201304L96#      error "__cpp_lib_quoted_string_io should have the value 201304L in c++26"97#    endif98#  else99#    ifdef __cpp_lib_quoted_string_io100#      error "__cpp_lib_quoted_string_io should not be defined when the requirement '!defined(_LIBCPP_VERSION) || _LIBCPP_HAS_LOCALIZATION' is not met!"101#    endif102#  endif103 104#endif // TEST_STD_VER > 23105 106// clang-format on107