//===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // Ensure that none of the standard C++ headers implicitly include cassert or // assert.h (because assert() is implemented as a macro). // The system-provided seems to be broken on AIX // XFAIL: LIBCXX-AIX-FIXME // Prevent from generating deprecated warnings for this test. #if defined(__DEPRECATED) # undef __DEPRECATED #endif /* BEGIN-SCRIPT for header in public_headers: if header == 'cassert': continue print("{}#{}include <{}>{}".format( '#if ' + header_restrictions[header] + '\n' if header in header_restrictions else '', 3 * ' ' if header in header_restrictions else '', header, '\n#endif' if header in header_restrictions else '' )) END-SCRIPT */ // DO NOT MANUALLY EDIT ANYTHING BETWEEN THE MARKERS BELOW // GENERATED-MARKER #include #include #include #include #if !defined(_LIBCPP_HAS_NO_THREADS) # include #endif #include #include #include #include #include #include #include #include #include #include #include #include #if !defined(_LIBCPP_HAS_NO_LOCALIZATION) # include #endif #include #if !defined(_LIBCPP_HAS_NO_LOCALIZATION) # include #endif #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #if !defined(_LIBCPP_HAS_NO_WIDE_CHARACTERS) # include #endif #if !defined(_LIBCPP_HAS_NO_WIDE_CHARACTERS) # include #endif #include #include #include #include #include #if !defined(_LIBCPP_HAS_NO_FILESYSTEM_LIBRARY) # include #endif #include #include #include #if !defined(_LIBCPP_HAS_NO_LOCALIZATION) # include #endif #include #if !defined(_LIBCPP_HAS_NO_THREADS) # include #endif #include #include #if !defined(_LIBCPP_HAS_NO_LOCALIZATION) # include #endif #if !defined(_LIBCPP_HAS_NO_LOCALIZATION) # include #endif #include #if !defined(_LIBCPP_HAS_NO_LOCALIZATION) # include #endif #if !defined(_LIBCPP_HAS_NO_LOCALIZATION) # include #endif #include #if !defined(_LIBCPP_HAS_NO_THREADS) # include #endif #include #include #include #if !defined(_LIBCPP_HAS_NO_LOCALIZATION) # include #endif #if !defined(_LIBCPP_HAS_NO_LOCALIZATION) # include #endif #include #include #include #if !defined(_LIBCPP_HAS_NO_THREADS) # include #endif #include #include #include #include #if !defined(_LIBCPP_HAS_NO_LOCALIZATION) # include #endif #include #include #include #include #if !defined(_LIBCPP_HAS_NO_LOCALIZATION) # include #endif #include #if !defined(_LIBCPP_HAS_NO_THREADS) # include #endif #include #include #if !defined(_LIBCPP_HAS_NO_THREADS) # include #endif #include #if !defined(_LIBCPP_HAS_NO_LOCALIZATION) # include #endif #include #if __cplusplus > 202002L && !defined(_LIBCPP_HAS_NO_THREADS) # include #endif #include #include #include #include #include #include #if !defined(_LIBCPP_HAS_NO_LOCALIZATION) # include #endif #include #include #include #if !defined(_LIBCPP_HAS_NO_LOCALIZATION) # include #endif #include #include #if !defined(_LIBCPP_HAS_NO_THREADS) # include #endif #include #include #include #include #include #include #include #include #include #include #include #include #if !defined(_LIBCPP_HAS_NO_WIDE_CHARACTERS) # include #endif #if !defined(_LIBCPP_HAS_NO_WIDE_CHARACTERS) # include #endif #if __cplusplus >= 201103L # include #endif #if __cplusplus >= 201103L && !defined(_LIBCPP_HAS_NO_EXPERIMENTAL_COROUTINES) # include #endif #if __cplusplus >= 201103L # include #endif #if __cplusplus >= 201103L # include #endif #if __cplusplus >= 201103L # include #endif #if __cplusplus >= 201103L # include #endif #if __cplusplus >= 201103L # include #endif #if __cplusplus >= 201103L # include #endif #if __cplusplus >= 201103L # include #endif #if __cplusplus >= 201103L # include #endif #if !defined(_LIBCPP_HAS_NO_LOCALIZATION) && __cplusplus >= 201103L # include #endif #if __cplusplus >= 201103L # include #endif #if __cplusplus >= 201103L # include #endif #if __cplusplus >= 201103L # include #endif #if __cplusplus >= 201103L # include #endif #if __cplusplus >= 201103L # include #endif #if __cplusplus >= 201103L # include #endif #if __cplusplus >= 201103L # include #endif #if __cplusplus >= 201103L # include #endif #include #include // GENERATED-MARKER #ifdef assert #error "Do not include cassert or assert.h in standard header files" #endif