Index: include/algorithm =================================================================== --- include/algorithm +++ include/algorithm @@ -646,6 +646,7 @@ #include #include #include +#include #include <__debug> Index: include/any =================================================================== --- include/any +++ include/any @@ -87,6 +87,7 @@ #include #include #include +#include #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) #pragma GCC system_header Index: include/array =================================================================== --- include/array +++ include/array @@ -112,6 +112,7 @@ #include #include #include // for _LIBCPP_UNREACHABLE +#include #include <__debug> #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) Index: include/atomic =================================================================== --- include/atomic +++ include/atomic @@ -544,6 +544,7 @@ #include #include #include +#include #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) #pragma GCC system_header @@ -559,10 +560,6 @@ #error C++ standard library is incompatible with #endif -#if _LIBCPP_STD_VER > 14 -# define __cpp_lib_atomic_is_always_lock_free 201603L -#endif - #define _LIBCPP_CHECK_STORE_MEMORY_ORDER(__m) \ _LIBCPP_DIAGNOSE_WARNING(__m == memory_order_consume || \ __m == memory_order_acquire || \ Index: include/bit =================================================================== --- include/bit +++ include/bit @@ -21,6 +21,7 @@ */ #include <__config> +#include #if defined(__IBMCPP__) #include "support/ibm/support.h" Index: include/chrono =================================================================== --- include/chrono +++ include/chrono @@ -798,6 +798,7 @@ #include #include #include +#include #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) #pragma GCC system_header Index: include/cmath =================================================================== --- include/cmath +++ include/cmath @@ -303,6 +303,7 @@ #include <__config> #include +#include #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) #pragma GCC system_header Index: include/complex =================================================================== --- include/complex +++ include/complex @@ -245,6 +245,7 @@ #include #include #include +#include #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) #pragma GCC system_header Index: include/cstddef =================================================================== --- include/cstddef +++ include/cstddef @@ -35,6 +35,7 @@ */ #include <__config> +#include #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) #pragma GCC system_header Index: include/deque =================================================================== --- include/deque +++ include/deque @@ -161,6 +161,7 @@ #include #include #include +#include #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) #pragma GCC system_header Index: include/exception =================================================================== --- include/exception +++ include/exception @@ -81,6 +81,7 @@ #include #include #include +#include #if defined(_LIBCPP_ABI_MICROSOFT) && !defined(_LIBCPP_NO_VCRUNTIME) #include Index: include/filesystem =================================================================== --- include/filesystem +++ include/filesystem @@ -244,6 +244,7 @@ #include #include // for quoted #include +#include #include <__debug> @@ -256,10 +257,6 @@ #ifndef _LIBCPP_CXX03_LANG -#if _LIBCPP_STD_VER >= 17 -#define __cpp_lib_filesystem 201703 -#endif - _LIBCPP_BEGIN_NAMESPACE_FILESYSTEM struct _FilesystemClock { Index: include/forward_list =================================================================== --- include/forward_list +++ include/forward_list @@ -177,6 +177,7 @@ #include #include #include +#include #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) #pragma GCC system_header Index: include/functional =================================================================== --- include/functional +++ include/functional @@ -487,6 +487,7 @@ #include #include #include +#include #include <__functional_base> @@ -2340,8 +2341,6 @@ #if _LIBCPP_STD_VER > 14 -#define __cpp_lib_invoke 201411 - template result_of_t<_Fn&&(_Args&&...)> invoke(_Fn&& __f, _Args&&... __args) Index: include/iomanip =================================================================== --- include/iomanip +++ include/iomanip @@ -46,6 +46,7 @@ #include <__config> #include <__string> #include +#include #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) #pragma GCC system_header Index: include/iterator =================================================================== --- include/iterator +++ include/iterator @@ -418,6 +418,7 @@ #include #include #include +#include #ifdef __APPLE__ #include #endif Index: include/list =================================================================== --- include/list +++ include/list @@ -181,6 +181,7 @@ #include #include #include +#include #include <__debug> Index: include/map =================================================================== --- include/map +++ include/map @@ -460,6 +460,7 @@ #include #include #include +#include #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) #pragma GCC system_header Index: include/memory =================================================================== --- include/memory +++ include/memory @@ -667,6 +667,7 @@ #if !defined(_LIBCPP_HAS_NO_ATOMIC_HEADER) # include #endif +#include #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) #pragma GCC system_header Index: include/mutex =================================================================== --- include/mutex +++ include/mutex @@ -194,6 +194,7 @@ #ifndef _LIBCPP_CXX03_LANG #include #endif +#include #include <__threading_support> #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) Index: include/new =================================================================== --- include/new +++ include/new @@ -91,6 +91,7 @@ #include #include #include +#include #ifdef _LIBCPP_NO_EXCEPTIONS #include #endif Index: include/numeric =================================================================== --- include/numeric +++ include/numeric @@ -142,6 +142,7 @@ #include #include // for numeric_limits #include +#include #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) #pragma GCC system_header Index: include/optional =================================================================== --- include/optional +++ include/optional @@ -156,6 +156,7 @@ #include #include #include +#include #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) #pragma GCC system_header Index: include/regex =================================================================== --- include/regex +++ include/regex @@ -769,6 +769,7 @@ #include #include #include +#include #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) #pragma GCC system_header Index: include/scoped_allocator =================================================================== --- include/scoped_allocator +++ include/scoped_allocator @@ -108,6 +108,7 @@ #include <__config> #include +#include #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) #pragma GCC system_header Index: include/set =================================================================== --- include/set +++ include/set @@ -402,6 +402,7 @@ #include <__tree> #include <__node_handle> #include +#include #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) #pragma GCC system_header Index: include/shared_mutex =================================================================== --- include/shared_mutex +++ include/shared_mutex @@ -124,6 +124,7 @@ */ #include <__config> +#include _LIBCPP_PUSH_MACROS #include <__undef_macros> Index: include/string =================================================================== --- include/string +++ include/string @@ -510,6 +510,7 @@ #include #include #include <__functional_base> +#include #ifndef _LIBCPP_HAS_NO_UNICODE_CHARS #include #endif Index: include/string_view =================================================================== --- include/string_view +++ include/string_view @@ -178,6 +178,7 @@ #include #include #include +#include #include <__debug> #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) Index: include/tuple =================================================================== --- include/tuple +++ include/tuple @@ -141,6 +141,7 @@ #include #include <__functional_base> #include +#include #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) #pragma GCC system_header Index: include/type_traits =================================================================== --- include/type_traits +++ include/type_traits @@ -404,6 +404,7 @@ */ #include <__config> #include +#include #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) #pragma GCC system_header @@ -4758,7 +4759,6 @@ #if _LIBCPP_STD_VER > 14 -#define __cpp_lib_void_t 201411 template using void_t = void; # ifndef _LIBCPP_HAS_NO_VARIADICS Index: include/unordered_map =================================================================== --- include/unordered_map +++ include/unordered_map @@ -386,6 +386,7 @@ #include #include #include +#include #include <__debug> Index: include/unordered_set =================================================================== --- include/unordered_set +++ include/unordered_set @@ -338,6 +338,7 @@ #include <__hash_table> #include <__node_handle> #include +#include #include <__debug> Index: include/utility =================================================================== --- include/utility +++ include/utility @@ -203,6 +203,7 @@ #include #include #include +#include #include <__debug> #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) Index: include/variant =================================================================== --- include/variant +++ include/variant @@ -208,6 +208,7 @@ #include #include #include +#include #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) #pragma GCC system_header Index: include/vector =================================================================== --- include/vector +++ include/vector @@ -276,6 +276,7 @@ #include #include #include +#include #include <__split_buffer> #include <__functional_base> Index: include/version =================================================================== --- include/version +++ include/version @@ -101,4 +101,17 @@ #pragma GCC system_header #endif +#if _LIBCPP_STD_VER > 11 +#endif + +#if _LIBCPP_STD_VER > 14 +# define __cpp_lib_atomic_is_always_lock_free 201603L +# define __cpp_lib_filesystem 201703L +# define __cpp_lib_invoke 201411L +# define __cpp_lib_void_t 201411L +#endif + +#if _LIBCPP_STD_VER > 17 +#endif + #endif // _LIBCPP_VERSIONH Index: test/std/language.support/support.limits/support.limits.general/algorithm.version.pass.cpp =================================================================== --- test/std/language.support/support.limits/support.limits.general/algorithm.version.pass.cpp +++ test/std/language.support/support.limits/support.limits.general/algorithm.version.pass.cpp @@ -0,0 +1,36 @@ + +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under the MIT and the University of Illinois Open +// Source Licenses. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// feature macros + +/* Constant Value + __cpp_lib_clamp 201603L + __cpp_lib_constexpr_swap_algorithms 201806L + __cpp_lib_parallel_algorithm 201603L + __cpp_lib_robust_nonmodifying_seq_ops 201304L + __cpp_lib_sample 201603L + +*/ + +#include +#include "test_macros.h" + +int main() +{ +// ensure that the macros that are supposed to be defined in are defined. + +/* +#if !defined(__cpp_lib_fooby) +# error "__cpp_lib_fooby is not defined" +#elif __cpp_lib_fooby < 201606L +# error "__cpp_lib_fooby has an invalid value" +#endif +*/ +} Index: test/std/language.support/support.limits/support.limits.general/any.version.pass.cpp =================================================================== --- test/std/language.support/support.limits/support.limits.general/any.version.pass.cpp +++ test/std/language.support/support.limits/support.limits.general/any.version.pass.cpp @@ -0,0 +1,32 @@ + +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under the MIT and the University of Illinois Open +// Source Licenses. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// feature macros + +/* Constant Value + __cpp_lib_any 201606L + +*/ + +#include +#include "test_macros.h" + +int main() +{ +// ensure that the macros that are supposed to be defined in are defined. + +/* +#if !defined(__cpp_lib_fooby) +# error "__cpp_lib_fooby is not defined" +#elif __cpp_lib_fooby < 201606L +# error "__cpp_lib_fooby has an invalid value" +#endif +*/ +} Index: test/std/language.support/support.limits/support.limits.general/array.version.pass.cpp =================================================================== --- test/std/language.support/support.limits/support.limits.general/array.version.pass.cpp +++ test/std/language.support/support.limits/support.limits.general/array.version.pass.cpp @@ -0,0 +1,33 @@ + +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under the MIT and the University of Illinois Open +// Source Licenses. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// feature macros + +/* Constant Value + __cpp_lib_array_constexpr 201603L + __cpp_lib_nonmember_container_access 201411L + +*/ + +#include +#include "test_macros.h" + +int main() +{ +// ensure that the macros that are supposed to be defined in are defined. + +/* +#if !defined(__cpp_lib_fooby) +# error "__cpp_lib_fooby is not defined" +#elif __cpp_lib_fooby < 201606L +# error "__cpp_lib_fooby has an invalid value" +#endif +*/ +} Index: test/std/language.support/support.limits/support.limits.general/atomic.version.pass.cpp =================================================================== --- test/std/language.support/support.limits/support.limits.general/atomic.version.pass.cpp +++ test/std/language.support/support.limits/support.limits.general/atomic.version.pass.cpp @@ -0,0 +1,41 @@ + +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under the MIT and the University of Illinois Open +// Source Licenses. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// feature macros + +/* Constant Value + __cpp_lib_atomic_is_always_lock_free 201603L + __cpp_lib_atomic_ref 201806L + +*/ + +#include +#include "test_macros.h" + +int main() +{ +// ensure that the macros that are supposed to be defined in are defined. + +#if _TEST_STD_VER > 14 +# if !defined(__cpp_lib_atomic_is_always_lock_free) +# error "__cpp_lib_atomic_is_always_lock_free is not defined" +# elif __cpp_lib_atomic_is_always_lock_free < 201603L +# error "__cpp_lib_atomic_is_always_lock_free has an invalid value" +# endif +#endif + +/* +#if !defined(__cpp_lib_fooby) +# error "__cpp_lib_fooby is not defined" +#elif __cpp_lib_fooby < 201606L +# error "__cpp_lib_fooby has an invalid value" +#endif +*/ +} Index: test/std/language.support/support.limits/support.limits.general/bit.version.pass.cpp =================================================================== --- test/std/language.support/support.limits/support.limits.general/bit.version.pass.cpp +++ test/std/language.support/support.limits/support.limits.general/bit.version.pass.cpp @@ -0,0 +1,32 @@ + +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under the MIT and the University of Illinois Open +// Source Licenses. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// feature macros + +/* Constant Value + __cpp_lib_bit_cast 201806L + +*/ + +#include +#include "test_macros.h" + +int main() +{ +// ensure that the macros that are supposed to be defined in are defined. + +/* +#if !defined(__cpp_lib_fooby) +# error "__cpp_lib_fooby is not defined" +#elif __cpp_lib_fooby < 201606L +# error "__cpp_lib_fooby has an invalid value" +#endif +*/ +} Index: test/std/language.support/support.limits/support.limits.general/chrono.version.pass.cpp =================================================================== --- test/std/language.support/support.limits/support.limits.general/chrono.version.pass.cpp +++ test/std/language.support/support.limits/support.limits.general/chrono.version.pass.cpp @@ -0,0 +1,32 @@ + +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under the MIT and the University of Illinois Open +// Source Licenses. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// feature macros + +/* Constant Value + __cpp_lib_chrono 201611L + +*/ + +#include +#include "test_macros.h" + +int main() +{ +// ensure that the macros that are supposed to be defined in are defined. + +/* +#if !defined(__cpp_lib_fooby) +# error "__cpp_lib_fooby is not defined" +#elif __cpp_lib_fooby < 201606L +# error "__cpp_lib_fooby has an invalid value" +#endif +*/ +} Index: test/std/language.support/support.limits/support.limits.general/cmath.version.pass.cpp =================================================================== --- test/std/language.support/support.limits/support.limits.general/cmath.version.pass.cpp +++ test/std/language.support/support.limits/support.limits.general/cmath.version.pass.cpp @@ -0,0 +1,33 @@ + +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under the MIT and the University of Illinois Open +// Source Licenses. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// feature macros + +/* Constant Value + __cpp_lib_hypot 201603L + __cpp_lib_math_special_functions 201603L + +*/ + +#include +#include "test_macros.h" + +int main() +{ +// ensure that the macros that are supposed to be defined in are defined. + +/* +#if !defined(__cpp_lib_fooby) +# error "__cpp_lib_fooby is not defined" +#elif __cpp_lib_fooby < 201606L +# error "__cpp_lib_fooby has an invalid value" +#endif +*/ +} Index: test/std/language.support/support.limits/support.limits.general/complex.version.pass.cpp =================================================================== --- test/std/language.support/support.limits/support.limits.general/complex.version.pass.cpp +++ test/std/language.support/support.limits/support.limits.general/complex.version.pass.cpp @@ -0,0 +1,32 @@ + +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under the MIT and the University of Illinois Open +// Source Licenses. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// feature macros + +/* Constant Value + __cpp_lib_complex_udls 201309L + +*/ + +#include +#include "test_macros.h" + +int main() +{ +// ensure that the macros that are supposed to be defined in are defined. + +/* +#if !defined(__cpp_lib_fooby) +# error "__cpp_lib_fooby is not defined" +#elif __cpp_lib_fooby < 201606L +# error "__cpp_lib_fooby has an invalid value" +#endif +*/ +} Index: test/std/language.support/support.limits/support.limits.general/concepts.version.pass.cpp =================================================================== --- test/std/language.support/support.limits/support.limits.general/concepts.version.pass.cpp +++ test/std/language.support/support.limits/support.limits.general/concepts.version.pass.cpp @@ -0,0 +1,32 @@ + +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under the MIT and the University of Illinois Open +// Source Licenses. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// feature macros + +/* Constant Value + __cpp_lib_concepts 201806L + +*/ + +#include +#include "test_macros.h" + +int main() +{ +// ensure that the macros that are supposed to be defined in are defined. + +/* +#if !defined(__cpp_lib_fooby) +# error "__cpp_lib_fooby is not defined" +#elif __cpp_lib_fooby < 201606L +# error "__cpp_lib_fooby has an invalid value" +#endif +*/ +} Index: test/std/language.support/support.limits/support.limits.general/cstddef.version.pass.cpp =================================================================== --- test/std/language.support/support.limits/support.limits.general/cstddef.version.pass.cpp +++ test/std/language.support/support.limits/support.limits.general/cstddef.version.pass.cpp @@ -0,0 +1,32 @@ + +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under the MIT and the University of Illinois Open +// Source Licenses. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// feature macros + +/* Constant Value + __cpp_lib_byte 201603L + +*/ + +#include +#include "test_macros.h" + +int main() +{ +// ensure that the macros that are supposed to be defined in are defined. + +/* +#if !defined(__cpp_lib_fooby) +# error "__cpp_lib_fooby is not defined" +#elif __cpp_lib_fooby < 201606L +# error "__cpp_lib_fooby has an invalid value" +#endif +*/ +} Index: test/std/language.support/support.limits/support.limits.general/deque.version.pass.cpp =================================================================== --- test/std/language.support/support.limits/support.limits.general/deque.version.pass.cpp +++ test/std/language.support/support.limits/support.limits.general/deque.version.pass.cpp @@ -0,0 +1,33 @@ + +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under the MIT and the University of Illinois Open +// Source Licenses. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// feature macros + +/* Constant Value + __cpp_lib_allocator_traits_is_always_equal 201411L + __cpp_lib_nonmember_container_access 201411L + +*/ + +#include +#include "test_macros.h" + +int main() +{ +// ensure that the macros that are supposed to be defined in are defined. + +/* +#if !defined(__cpp_lib_fooby) +# error "__cpp_lib_fooby is not defined" +#elif __cpp_lib_fooby < 201606L +# error "__cpp_lib_fooby has an invalid value" +#endif +*/ +} Index: test/std/language.support/support.limits/support.limits.general/exception.version.pass.cpp =================================================================== --- test/std/language.support/support.limits/support.limits.general/exception.version.pass.cpp +++ test/std/language.support/support.limits/support.limits.general/exception.version.pass.cpp @@ -0,0 +1,32 @@ + +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under the MIT and the University of Illinois Open +// Source Licenses. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// feature macros + +/* Constant Value + __cpp_lib_uncaught_exceptions 201411L + +*/ + +#include +#include "test_macros.h" + +int main() +{ +// ensure that the macros that are supposed to be defined in are defined. + +/* +#if !defined(__cpp_lib_fooby) +# error "__cpp_lib_fooby is not defined" +#elif __cpp_lib_fooby < 201606L +# error "__cpp_lib_fooby has an invalid value" +#endif +*/ +} Index: test/std/language.support/support.limits/support.limits.general/execution.version.pass.cpp =================================================================== --- test/std/language.support/support.limits/support.limits.general/execution.version.pass.cpp +++ test/std/language.support/support.limits/support.limits.general/execution.version.pass.cpp @@ -0,0 +1,32 @@ + +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under the MIT and the University of Illinois Open +// Source Licenses. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// feature macros + +/* Constant Value + __cpp_lib_execution 201603L + +*/ + +#include +#include "test_macros.h" + +int main() +{ +// ensure that the macros that are supposed to be defined in are defined. + +/* +#if !defined(__cpp_lib_fooby) +# error "__cpp_lib_fooby is not defined" +#elif __cpp_lib_fooby < 201606L +# error "__cpp_lib_fooby has an invalid value" +#endif +*/ +} Index: test/std/language.support/support.limits/support.limits.general/filesystem.version.pass.cpp =================================================================== --- test/std/language.support/support.limits/support.limits.general/filesystem.version.pass.cpp +++ test/std/language.support/support.limits/support.limits.general/filesystem.version.pass.cpp @@ -0,0 +1,40 @@ + +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under the MIT and the University of Illinois Open +// Source Licenses. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// feature macros + +/* Constant Value + __cpp_lib_filesystem 201703L + +*/ + +#include +#include "test_macros.h" + +int main() +{ +// ensure that the macros that are supposed to be defined in are defined. + +#if _TEST_STD_VER > 14 +# if !defined(__cpp_lib_filesystem) +# error "__cpp_lib_filesystem is not defined" +# elif __cpp_lib_filesystem < 201703L +# error "__cpp_lib_filesystem has an invalid value" +# endif +#endif + +/* +#if !defined(__cpp_lib_fooby) +# error "__cpp_lib_fooby is not defined" +#elif __cpp_lib_fooby < 201606L +# error "__cpp_lib_fooby has an invalid value" +#endif +*/ +} Index: test/std/language.support/support.limits/support.limits.general/forward_list.version.pass.cpp =================================================================== --- test/std/language.support/support.limits/support.limits.general/forward_list.version.pass.cpp +++ test/std/language.support/support.limits/support.limits.general/forward_list.version.pass.cpp @@ -0,0 +1,35 @@ + +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under the MIT and the University of Illinois Open +// Source Licenses. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// feature macros + +/* Constant Value + __cpp_lib_allocator_traits_is_always_equal 201411L + __cpp_lib_incomplete_container_elements 201505L + __cpp_lib_list_remove_return_type 201806L + __cpp_lib_nonmember_container_access 201411L + +*/ + +#include +#include "test_macros.h" + +int main() +{ +// ensure that the macros that are supposed to be defined in are defined. + +/* +#if !defined(__cpp_lib_fooby) +# error "__cpp_lib_fooby is not defined" +#elif __cpp_lib_fooby < 201606L +# error "__cpp_lib_fooby has an invalid value" +#endif +*/ +} Index: test/std/language.support/support.limits/support.limits.general/functional.version.pass.cpp =================================================================== --- test/std/language.support/support.limits/support.limits.general/functional.version.pass.cpp +++ test/std/language.support/support.limits/support.limits.general/functional.version.pass.cpp @@ -0,0 +1,44 @@ + +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under the MIT and the University of Illinois Open +// Source Licenses. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// feature macros + +/* Constant Value + __cpp_lib_boyer_moore_searcher 201603L + __cpp_lib_invoke 201411L + __cpp_lib_not_fn 201603L + __cpp_lib_result_of_sfinae 201210L + __cpp_lib_transparent_operators 201510L + +*/ + +#include +#include "test_macros.h" + +int main() +{ +// ensure that the macros that are supposed to be defined in are defined. + +#if _TEST_STD_VER > 14 +# if !defined(__cpp_lib_invoke) +# error "__cpp_lib_invoke is not defined" +# elif __cpp_lib_invoke < 201411L +# error "__cpp_lib_invoke has an invalid value" +# endif +#endif + +/* +#if !defined(__cpp_lib_fooby) +# error "__cpp_lib_fooby is not defined" +#elif __cpp_lib_fooby < 201606L +# error "__cpp_lib_fooby has an invalid value" +#endif +*/ +} Index: test/std/language.support/support.limits/support.limits.general/iomanip.version.pass.cpp =================================================================== --- test/std/language.support/support.limits/support.limits.general/iomanip.version.pass.cpp +++ test/std/language.support/support.limits/support.limits.general/iomanip.version.pass.cpp @@ -0,0 +1,32 @@ + +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under the MIT and the University of Illinois Open +// Source Licenses. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// feature macros + +/* Constant Value + __cpp_lib_quoted_string_io 201304L + +*/ + +#include +#include "test_macros.h" + +int main() +{ +// ensure that the macros that are supposed to be defined in are defined. + +/* +#if !defined(__cpp_lib_fooby) +# error "__cpp_lib_fooby is not defined" +#elif __cpp_lib_fooby < 201606L +# error "__cpp_lib_fooby has an invalid value" +#endif +*/ +} Index: test/std/language.support/support.limits/support.limits.general/iterator.version.pass.cpp =================================================================== --- test/std/language.support/support.limits/support.limits.general/iterator.version.pass.cpp +++ test/std/language.support/support.limits/support.limits.general/iterator.version.pass.cpp @@ -0,0 +1,35 @@ + +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under the MIT and the University of Illinois Open +// Source Licenses. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// feature macros + +/* Constant Value + __cpp_lib_array_constexpr 201603L + __cpp_lib_make_reverse_iterator 201402L + __cpp_lib_nonmember_container_access 201411L + __cpp_lib_null_iterators 201304L + +*/ + +#include +#include "test_macros.h" + +int main() +{ +// ensure that the macros that are supposed to be defined in are defined. + +/* +#if !defined(__cpp_lib_fooby) +# error "__cpp_lib_fooby is not defined" +#elif __cpp_lib_fooby < 201606L +# error "__cpp_lib_fooby has an invalid value" +#endif +*/ +} Index: test/std/language.support/support.limits/support.limits.general/list.version.pass.cpp =================================================================== --- test/std/language.support/support.limits/support.limits.general/list.version.pass.cpp +++ test/std/language.support/support.limits/support.limits.general/list.version.pass.cpp @@ -0,0 +1,35 @@ + +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under the MIT and the University of Illinois Open +// Source Licenses. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// feature macros + +/* Constant Value + __cpp_lib_allocator_traits_is_always_equal 201411L + __cpp_lib_incomplete_container_elements 201505L + __cpp_lib_list_remove_return_type 201806L + __cpp_lib_nonmember_container_access 201411L + +*/ + +#include +#include "test_macros.h" + +int main() +{ +// ensure that the macros that are supposed to be defined in are defined. + +/* +#if !defined(__cpp_lib_fooby) +# error "__cpp_lib_fooby is not defined" +#elif __cpp_lib_fooby < 201606L +# error "__cpp_lib_fooby has an invalid value" +#endif +*/ +} Index: test/std/language.support/support.limits/support.limits.general/map.version.pass.cpp =================================================================== --- test/std/language.support/support.limits/support.limits.general/map.version.pass.cpp +++ test/std/language.support/support.limits/support.limits.general/map.version.pass.cpp @@ -0,0 +1,36 @@ + +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under the MIT and the University of Illinois Open +// Source Licenses. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// feature macros + +/* Constant Value + __cpp_lib_allocator_traits_is_always_equal 201411L + __cpp_lib_generic_associative_lookup 201304L + __cpp_lib_map_try_emplace 201411L + __cpp_lib_node_extract 201606L + __cpp_lib_nonmember_container_access 201411L + +*/ + +#include +#include "test_macros.h" + +int main() +{ +// ensure that the macros that are supposed to be defined in are defined. + +/* +#if !defined(__cpp_lib_fooby) +# error "__cpp_lib_fooby is not defined" +#elif __cpp_lib_fooby < 201606L +# error "__cpp_lib_fooby has an invalid value" +#endif +*/ +} Index: test/std/language.support/support.limits/support.limits.general/memory.version.pass.cpp =================================================================== --- test/std/language.support/support.limits/support.limits.general/memory.version.pass.cpp +++ test/std/language.support/support.limits/support.limits.general/memory.version.pass.cpp @@ -0,0 +1,39 @@ + +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under the MIT and the University of Illinois Open +// Source Licenses. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// feature macros + +/* Constant Value + __cpp_lib_addressof_constexpr 201603L + __cpp_lib_allocator_traits_is_always_equal 201411L + __cpp_lib_enable_shared_from_this 201603L + __cpp_lib_make_unique 201304L + __cpp_lib_raw_memory_algorithms 201606L + __cpp_lib_shared_ptr_arrays 201611L + __cpp_lib_shared_ptr_weak_type 201606L + __cpp_lib_transparent_operators 201510L + +*/ + +#include +#include "test_macros.h" + +int main() +{ +// ensure that the macros that are supposed to be defined in are defined. + +/* +#if !defined(__cpp_lib_fooby) +# error "__cpp_lib_fooby is not defined" +#elif __cpp_lib_fooby < 201606L +# error "__cpp_lib_fooby has an invalid value" +#endif +*/ +} Index: test/std/language.support/support.limits/support.limits.general/memory_resource.version.pass.cpp =================================================================== --- test/std/language.support/support.limits/support.limits.general/memory_resource.version.pass.cpp +++ test/std/language.support/support.limits/support.limits.general/memory_resource.version.pass.cpp @@ -0,0 +1,32 @@ + +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under the MIT and the University of Illinois Open +// Source Licenses. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// feature macros + +/* Constant Value + __cpp_lib_memory_resource 201603L + +*/ + +#include +#include "test_macros.h" + +int main() +{ +// ensure that the macros that are supposed to be defined in are defined. + +/* +#if !defined(__cpp_lib_fooby) +# error "__cpp_lib_fooby is not defined" +#elif __cpp_lib_fooby < 201606L +# error "__cpp_lib_fooby has an invalid value" +#endif +*/ +} Index: test/std/language.support/support.limits/support.limits.general/mutex.version.pass.cpp =================================================================== --- test/std/language.support/support.limits/support.limits.general/mutex.version.pass.cpp +++ test/std/language.support/support.limits/support.limits.general/mutex.version.pass.cpp @@ -0,0 +1,32 @@ + +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under the MIT and the University of Illinois Open +// Source Licenses. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// feature macros + +/* Constant Value + __cpp_lib_scoped_lock 201703L + +*/ + +#include +#include "test_macros.h" + +int main() +{ +// ensure that the macros that are supposed to be defined in are defined. + +/* +#if !defined(__cpp_lib_fooby) +# error "__cpp_lib_fooby is not defined" +#elif __cpp_lib_fooby < 201606L +# error "__cpp_lib_fooby has an invalid value" +#endif +*/ +} Index: test/std/language.support/support.limits/support.limits.general/new.version.pass.cpp =================================================================== --- test/std/language.support/support.limits/support.limits.general/new.version.pass.cpp +++ test/std/language.support/support.limits/support.limits.general/new.version.pass.cpp @@ -0,0 +1,33 @@ + +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under the MIT and the University of Illinois Open +// Source Licenses. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// feature macros + +/* Constant Value + __cpp_lib_hardware_interference_size 201703L + __cpp_lib_launder 201606L + +*/ + +#include +#include "test_macros.h" + +int main() +{ +// ensure that the macros that are supposed to be defined in are defined. + +/* +#if !defined(__cpp_lib_fooby) +# error "__cpp_lib_fooby is not defined" +#elif __cpp_lib_fooby < 201606L +# error "__cpp_lib_fooby has an invalid value" +#endif +*/ +} Index: test/std/language.support/support.limits/support.limits.general/numeric.version.pass.cpp =================================================================== --- test/std/language.support/support.limits/support.limits.general/numeric.version.pass.cpp +++ test/std/language.support/support.limits/support.limits.general/numeric.version.pass.cpp @@ -0,0 +1,33 @@ + +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under the MIT and the University of Illinois Open +// Source Licenses. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// feature macros + +/* Constant Value + __cpp_lib_gcd_lcm 201606L + __cpp_lib_parallel_algorithm 201603L + +*/ + +#include +#include "test_macros.h" + +int main() +{ +// ensure that the macros that are supposed to be defined in are defined. + +/* +#if !defined(__cpp_lib_fooby) +# error "__cpp_lib_fooby is not defined" +#elif __cpp_lib_fooby < 201606L +# error "__cpp_lib_fooby has an invalid value" +#endif +*/ +} Index: test/std/language.support/support.limits/support.limits.general/optional.version.pass.cpp =================================================================== --- test/std/language.support/support.limits/support.limits.general/optional.version.pass.cpp +++ test/std/language.support/support.limits/support.limits.general/optional.version.pass.cpp @@ -0,0 +1,32 @@ + +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under the MIT and the University of Illinois Open +// Source Licenses. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// feature macros + +/* Constant Value + __cpp_lib_optional 201606L + +*/ + +#include +#include "test_macros.h" + +int main() +{ +// ensure that the macros that are supposed to be defined in are defined. + +/* +#if !defined(__cpp_lib_fooby) +# error "__cpp_lib_fooby is not defined" +#elif __cpp_lib_fooby < 201606L +# error "__cpp_lib_fooby has an invalid value" +#endif +*/ +} Index: test/std/language.support/support.limits/support.limits.general/regex.version.pass.cpp =================================================================== --- test/std/language.support/support.limits/support.limits.general/regex.version.pass.cpp +++ test/std/language.support/support.limits/support.limits.general/regex.version.pass.cpp @@ -0,0 +1,32 @@ + +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under the MIT and the University of Illinois Open +// Source Licenses. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// feature macros + +/* Constant Value + __cpp_lib_nonmember_container_access 201411L + +*/ + +#include +#include "test_macros.h" + +int main() +{ +// ensure that the macros that are supposed to be defined in are defined. + +/* +#if !defined(__cpp_lib_fooby) +# error "__cpp_lib_fooby is not defined" +#elif __cpp_lib_fooby < 201606L +# error "__cpp_lib_fooby has an invalid value" +#endif +*/ +} Index: test/std/language.support/support.limits/support.limits.general/scoped_allocator.version.pass.cpp =================================================================== --- test/std/language.support/support.limits/support.limits.general/scoped_allocator.version.pass.cpp +++ test/std/language.support/support.limits/support.limits.general/scoped_allocator.version.pass.cpp @@ -0,0 +1,32 @@ + +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under the MIT and the University of Illinois Open +// Source Licenses. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// feature macros + +/* Constant Value + __cpp_lib_allocator_traits_is_always_equal 201411L + +*/ + +#include +#include "test_macros.h" + +int main() +{ +// ensure that the macros that are supposed to be defined in are defined. + +/* +#if !defined(__cpp_lib_fooby) +# error "__cpp_lib_fooby is not defined" +#elif __cpp_lib_fooby < 201606L +# error "__cpp_lib_fooby has an invalid value" +#endif +*/ +} Index: test/std/language.support/support.limits/support.limits.general/set.version.pass.cpp =================================================================== --- test/std/language.support/support.limits/support.limits.general/set.version.pass.cpp +++ test/std/language.support/support.limits/support.limits.general/set.version.pass.cpp @@ -0,0 +1,35 @@ + +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under the MIT and the University of Illinois Open +// Source Licenses. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// feature macros + +/* Constant Value + __cpp_lib_allocator_traits_is_always_equal 201411L + __cpp_lib_generic_associative_lookup 201304L + __cpp_lib_node_extract 201606L + __cpp_lib_nonmember_container_access 201411L + +*/ + +#include +#include "test_macros.h" + +int main() +{ +// ensure that the macros that are supposed to be defined in are defined. + +/* +#if !defined(__cpp_lib_fooby) +# error "__cpp_lib_fooby is not defined" +#elif __cpp_lib_fooby < 201606L +# error "__cpp_lib_fooby has an invalid value" +#endif +*/ +} Index: test/std/language.support/support.limits/support.limits.general/shared_mutex.version.pass.cpp =================================================================== --- test/std/language.support/support.limits/support.limits.general/shared_mutex.version.pass.cpp +++ test/std/language.support/support.limits/support.limits.general/shared_mutex.version.pass.cpp @@ -0,0 +1,33 @@ + +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under the MIT and the University of Illinois Open +// Source Licenses. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// feature macros + +/* Constant Value + __cpp_lib_shared_mutex 201505L + __cpp_lib_shared_timed_mutex 201402L + +*/ + +#include +#include "test_macros.h" + +int main() +{ +// ensure that the macros that are supposed to be defined in are defined. + +/* +#if !defined(__cpp_lib_fooby) +# error "__cpp_lib_fooby is not defined" +#elif __cpp_lib_fooby < 201606L +# error "__cpp_lib_fooby has an invalid value" +#endif +*/ +} Index: test/std/language.support/support.limits/support.limits.general/string.version.pass.cpp =================================================================== --- test/std/language.support/support.limits/support.limits.general/string.version.pass.cpp +++ test/std/language.support/support.limits/support.limits.general/string.version.pass.cpp @@ -0,0 +1,35 @@ + +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under the MIT and the University of Illinois Open +// Source Licenses. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// feature macros + +/* Constant Value + __cpp_lib_allocator_traits_is_always_equal 201411L + __cpp_lib_nonmember_container_access 201411L + __cpp_lib_string_udls 201304L + __cpp_lib_string_view 201606L + +*/ + +#include +#include "test_macros.h" + +int main() +{ +// ensure that the macros that are supposed to be defined in are defined. + +/* +#if !defined(__cpp_lib_fooby) +# error "__cpp_lib_fooby is not defined" +#elif __cpp_lib_fooby < 201606L +# error "__cpp_lib_fooby has an invalid value" +#endif +*/ +} Index: test/std/language.support/support.limits/support.limits.general/string_view.version.pass.cpp =================================================================== --- test/std/language.support/support.limits/support.limits.general/string_view.version.pass.cpp +++ test/std/language.support/support.limits/support.limits.general/string_view.version.pass.cpp @@ -0,0 +1,32 @@ + +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under the MIT and the University of Illinois Open +// Source Licenses. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// feature macros + +/* Constant Value + __cpp_lib_string_view 201606L + +*/ + +#include +#include "test_macros.h" + +int main() +{ +// ensure that the macros that are supposed to be defined in are defined. + +/* +#if !defined(__cpp_lib_fooby) +# error "__cpp_lib_fooby is not defined" +#elif __cpp_lib_fooby < 201606L +# error "__cpp_lib_fooby has an invalid value" +#endif +*/ +} Index: test/std/language.support/support.limits/support.limits.general/tuple.version.pass.cpp =================================================================== --- test/std/language.support/support.limits/support.limits.general/tuple.version.pass.cpp +++ test/std/language.support/support.limits/support.limits.general/tuple.version.pass.cpp @@ -0,0 +1,35 @@ + +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under the MIT and the University of Illinois Open +// Source Licenses. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// feature macros + +/* Constant Value + __cpp_lib_apply 201603L + __cpp_lib_make_from_tuple 201606L + __cpp_lib_tuple_element_t 201402L + __cpp_lib_tuples_by_type 201304L + +*/ + +#include +#include "test_macros.h" + +int main() +{ +// ensure that the macros that are supposed to be defined in are defined. + +/* +#if !defined(__cpp_lib_fooby) +# error "__cpp_lib_fooby is not defined" +#elif __cpp_lib_fooby < 201606L +# error "__cpp_lib_fooby has an invalid value" +#endif +*/ +} Index: test/std/language.support/support.limits/support.limits.general/type_traits.version.pass.cpp =================================================================== --- test/std/language.support/support.limits/support.limits.general/type_traits.version.pass.cpp +++ test/std/language.support/support.limits/support.limits.general/type_traits.version.pass.cpp @@ -0,0 +1,53 @@ + +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under the MIT and the University of Illinois Open +// Source Licenses. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// feature macros + +/* Constant Value + __cpp_lib_bool_constant 201505L + __cpp_lib_has_unique_object_representations 201606L + __cpp_lib_integral_constant_callable 201304L + __cpp_lib_is_aggregate 201703L + __cpp_lib_is_final 201402L + __cpp_lib_is_invocable 201703L + __cpp_lib_is_null_pointer 201309L + __cpp_lib_is_swappable 201603L + __cpp_lib_logical_traits 201510L + __cpp_lib_result_of_sfinae 201210L + __cpp_lib_transformation_trait_aliases 201304L + __cpp_lib_type_trait_variable_templates 201510L + __cpp_lib_void_t 201411L + +*/ + +#include +#include "test_macros.h" + +int main() +{ +// ensure that the macros that are supposed to be defined in are defined. + +#if _TEST_STD_VER > 14 +# if !defined(__cpp_lib_void_t) +# error "__cpp_lib_void_t is not defined" +# elif __cpp_lib_void_t < 201411L +# error "__cpp_lib_void_t has an invalid value" +# endif +#endif + + +/* +#if !defined(__cpp_lib_fooby) +# error "__cpp_lib_fooby is not defined" +#elif __cpp_lib_fooby < 201606L +# error "__cpp_lib_fooby has an invalid value" +#endif +*/ +} Index: test/std/language.support/support.limits/support.limits.general/unordered_map.version.pass.cpp =================================================================== --- test/std/language.support/support.limits/support.limits.general/unordered_map.version.pass.cpp +++ test/std/language.support/support.limits/support.limits.general/unordered_map.version.pass.cpp @@ -0,0 +1,35 @@ + +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under the MIT and the University of Illinois Open +// Source Licenses. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// feature macros + +/* Constant Value + __cpp_lib_allocator_traits_is_always_equal 201411L + __cpp_lib_node_extract 201606L + __cpp_lib_nonmember_container_access 201411L + __cpp_lib_unordered_map_try_emplace 201411L + +*/ + +#include +#include "test_macros.h" + +int main() +{ +// ensure that the macros that are supposed to be defined in are defined. + +/* +#if !defined(__cpp_lib_fooby) +# error "__cpp_lib_fooby is not defined" +#elif __cpp_lib_fooby < 201606L +# error "__cpp_lib_fooby has an invalid value" +#endif +*/ +} Index: test/std/language.support/support.limits/support.limits.general/unordered_set.version.pass.cpp =================================================================== --- test/std/language.support/support.limits/support.limits.general/unordered_set.version.pass.cpp +++ test/std/language.support/support.limits/support.limits.general/unordered_set.version.pass.cpp @@ -0,0 +1,34 @@ + +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under the MIT and the University of Illinois Open +// Source Licenses. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// feature macros + +/* Constant Value + __cpp_lib_allocator_traits_is_always_equal 201411L + __cpp_lib_node_extract 201606L + __cpp_lib_nonmember_container_access 201411L + +*/ + +#include +#include "test_macros.h" + +int main() +{ +// ensure that the macros that are supposed to be defined in are defined. + +/* +#if !defined(__cpp_lib_fooby) +# error "__cpp_lib_fooby is not defined" +#elif __cpp_lib_fooby < 201606L +# error "__cpp_lib_fooby has an invalid value" +#endif +*/ +} Index: test/std/language.support/support.limits/support.limits.general/utility.version.pass.cpp =================================================================== --- test/std/language.support/support.limits/support.limits.general/utility.version.pass.cpp +++ test/std/language.support/support.limits/support.limits.general/utility.version.pass.cpp @@ -0,0 +1,36 @@ + +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under the MIT and the University of Illinois Open +// Source Licenses. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// feature macros + +/* Constant Value + __cpp_lib_as_const 201510L + __cpp_lib_exchange_function 201304L + __cpp_lib_integer_sequence 201304L + __cpp_lib_to_chars 201611L + __cpp_lib_tuples_by_type 201304L + +*/ + +#include +#include "test_macros.h" + +int main() +{ +// ensure that the macros that are supposed to be defined in are defined. + +/* +#if !defined(__cpp_lib_fooby) +# error "__cpp_lib_fooby is not defined" +#elif __cpp_lib_fooby < 201606L +# error "__cpp_lib_fooby has an invalid value" +#endif +*/ +} Index: test/std/language.support/support.limits/support.limits.general/variant.version.pass.cpp =================================================================== --- test/std/language.support/support.limits/support.limits.general/variant.version.pass.cpp +++ test/std/language.support/support.limits/support.limits.general/variant.version.pass.cpp @@ -0,0 +1,32 @@ + +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under the MIT and the University of Illinois Open +// Source Licenses. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// feature macros + +/* Constant Value + __cpp_lib_variant 201606L + +*/ + +#include +#include "test_macros.h" + +int main() +{ +// ensure that the macros that are supposed to be defined in are defined. + +/* +#if !defined(__cpp_lib_fooby) +# error "__cpp_lib_fooby is not defined" +#elif __cpp_lib_fooby < 201606L +# error "__cpp_lib_fooby has an invalid value" +#endif +*/ +} Index: test/std/language.support/support.limits/support.limits.general/vector.version.pass.cpp =================================================================== --- test/std/language.support/support.limits/support.limits.general/vector.version.pass.cpp +++ test/std/language.support/support.limits/support.limits.general/vector.version.pass.cpp @@ -0,0 +1,34 @@ + +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under the MIT and the University of Illinois Open +// Source Licenses. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// feature macros + +/* Constant Value + __cpp_lib_allocator_traits_is_always_equal 201411L + __cpp_lib_incomplete_container_elements 201505L + __cpp_lib_nonmember_container_access 201411L + +*/ + +#include +#include "test_macros.h" + +int main() +{ +// ensure that the macros that are supposed to be defined in are defined. + +/* +#if !defined(__cpp_lib_fooby) +# error "__cpp_lib_fooby is not defined" +#elif __cpp_lib_fooby < 201606L +# error "__cpp_lib_fooby has an invalid value" +#endif +*/ +} Index: test/std/language.support/support.limits/support.limits.general/version.version.pass.cpp =================================================================== --- test/std/language.support/support.limits/support.limits.general/version.version.pass.cpp +++ test/std/language.support/support.limits/support.limits.general/version.version.pass.cpp @@ -0,0 +1,135 @@ + +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under the MIT and the University of Illinois Open +// Source Licenses. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// feature macros + +/* Constant Value + __cpp_lib_addressof_constexpr 201603L + __cpp_lib_allocator_traits_is_always_equal 201411L + __cpp_lib_any 201606L + __cpp_lib_apply 201603L + __cpp_lib_array_constexpr 201603L + __cpp_lib_as_const 201510L + __cpp_lib_atomic_is_always_lock_free 201603L + __cpp_lib_atomic_ref 201806L + __cpp_lib_bit_cast 201806L + __cpp_lib_bool_constant 201505L + __cpp_lib_boyer_moore_searcher 201603L + __cpp_lib_byte 201603L + __cpp_lib_chrono 201611L + __cpp_lib_clamp 201603L + __cpp_lib_complex_udls 201309L + __cpp_lib_concepts 201806L + __cpp_lib_constexpr_swap_algorithms 201806L + __cpp_lib_enable_shared_from_this 201603L + __cpp_lib_exchange_function 201304L + __cpp_lib_execution 201603L + __cpp_lib_filesystem 201703L + __cpp_lib_gcd_lcm 201606L + __cpp_lib_generic_associative_lookup 201304L + __cpp_lib_hardware_interference_size 201703L + __cpp_lib_has_unique_object_representations 201606L + __cpp_lib_hypot 201603L + __cpp_lib_incomplete_container_elements 201505L + __cpp_lib_integer_sequence 201304L + __cpp_lib_integral_constant_callable 201304L + __cpp_lib_invoke 201411L + __cpp_lib_is_aggregate 201703L + __cpp_lib_is_final 201402L + __cpp_lib_is_invocable 201703L + __cpp_lib_is_null_pointer 201309L + __cpp_lib_is_swappable 201603L + __cpp_lib_launder 201606L + __cpp_lib_list_remove_return_type 201806L + __cpp_lib_logical_traits 201510L + __cpp_lib_make_from_tuple 201606L + __cpp_lib_make_reverse_iterator 201402L + __cpp_lib_make_unique 201304L + __cpp_lib_map_try_emplace 201411L + __cpp_lib_math_special_functions 201603L + __cpp_lib_memory_resource 201603L + __cpp_lib_node_extract 201606L + __cpp_lib_nonmember_container_access 201411L + __cpp_lib_not_fn 201603L + __cpp_lib_null_iterators 201304L + __cpp_lib_optional 201606L + __cpp_lib_parallel_algorithm 201603L + __cpp_lib_quoted_string_io 201304L + __cpp_lib_raw_memory_algorithms 201606L + __cpp_lib_result_of_sfinae 201210L + __cpp_lib_robust_nonmodifying_seq_ops 201304L + __cpp_lib_sample 201603L + __cpp_lib_scoped_lock 201703L + __cpp_lib_shared_mutex 201505L + __cpp_lib_shared_ptr_arrays 201611L + __cpp_lib_shared_ptr_weak_type 201606L + __cpp_lib_shared_timed_mutex 201402L + __cpp_lib_string_udls 201304L + __cpp_lib_string_view 201606L + __cpp_lib_to_chars 201611L + __cpp_lib_transformation_trait_aliases 201304L + __cpp_lib_transparent_operators 201510L + __cpp_lib_tuple_element_t 201402L + __cpp_lib_tuples_by_type 201304L + __cpp_lib_type_trait_variable_templates 201510L + __cpp_lib_uncaught_exceptions 201411L + __cpp_lib_unordered_map_try_emplace 201411L + __cpp_lib_variant 201606L + __cpp_lib_void_t 201411L + +*/ + +#include +#include "test_macros.h" + +int main() +{ +// ensure that the macros that are supposed to be defined in are defined. + +#if _TEST_STD_VER > 14 +# if !defined(__cpp_lib_atomic_is_always_lock_free) +# error "__cpp_lib_atomic_is_always_lock_free is not defined" +# elif __cpp_lib_atomic_is_always_lock_free < 201603L +# error "__cpp_lib_atomic_is_always_lock_free has an invalid value" +# endif +#endif + +#if _TEST_STD_VER > 14 +# if !defined(__cpp_lib_filesystem) +# error "__cpp_lib_filesystem is not defined" +# elif __cpp_lib_filesystem < 201703L +# error "__cpp_lib_filesystem has an invalid value" +# endif +#endif + +#if _TEST_STD_VER > 14 +# if !defined(__cpp_lib_invoke) +# error "__cpp_lib_invoke is not defined" +# elif __cpp_lib_invoke < 201411L +# error "__cpp_lib_invoke has an invalid value" +# endif +#endif + +#if _TEST_STD_VER > 14 +# if !defined(__cpp_lib_void_t) +# error "__cpp_lib_void_t is not defined" +# elif __cpp_lib_void_t < 201411L +# error "__cpp_lib_void_t has an invalid value" +# endif +#endif + +/* +#if !defined(__cpp_lib_fooby) +# error "__cpp_lib_fooby is not defined" +#elif __cpp_lib_fooby < 201606L +# error "__cpp_lib_fooby has an invalid value" +#endif +*/ +}