65 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// <sstream>15 16// Test the feature test macros defined by <sstream>17 18// clang-format off19 20#include <sstream>21#include "test_macros.h"22 23#if TEST_STD_VER < 1424 25# ifdef __cpp_lib_sstream_from_string_view26# error "__cpp_lib_sstream_from_string_view should not be defined before c++26"27# endif28 29#elif TEST_STD_VER == 1430 31# ifdef __cpp_lib_sstream_from_string_view32# error "__cpp_lib_sstream_from_string_view should not be defined before c++26"33# endif34 35#elif TEST_STD_VER == 1736 37# ifdef __cpp_lib_sstream_from_string_view38# error "__cpp_lib_sstream_from_string_view should not be defined before c++26"39# endif40 41#elif TEST_STD_VER == 2042 43# ifdef __cpp_lib_sstream_from_string_view44# error "__cpp_lib_sstream_from_string_view should not be defined before c++26"45# endif46 47#elif TEST_STD_VER == 2348 49# ifdef __cpp_lib_sstream_from_string_view50# error "__cpp_lib_sstream_from_string_view should not be defined before c++26"51# endif52 53#elif TEST_STD_VER > 2354 55# ifndef __cpp_lib_sstream_from_string_view56# error "__cpp_lib_sstream_from_string_view should be defined in c++26"57# endif58# if __cpp_lib_sstream_from_string_view != 202306L59# error "__cpp_lib_sstream_from_string_view should have the value 202306L in c++26"60# endif61 62#endif // TEST_STD_VER > 2363 64// clang-format on65