Add the feature test macros that were defined in p1353r0 to the headers of the appropriate tests. No actual tests yet, so NFC.

llvm-svn: 350535
This commit is contained in:
Marshall Clow 2019-01-07 16:17:52 +00:00
parent 4d7e47a545
commit 4d4213f694
3 changed files with 35 additions and 1 deletions

View File

@ -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.
//
//===----------------------------------------------------------------------===//
//
// <new> feature macros
/* Constant Value
__cpp_lib_three_way_comparison 201711L
*/
#include <compare>
#include <cassert>
#include "test_macros.h"
int main()
{
// ensure that the macros that are supposed to be defined in <compare> 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
*/
}

View File

@ -1,4 +1,3 @@
//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
@ -11,6 +10,7 @@
// <new> feature macros
/* Constant Value
__cpp_lib_destroying_delete 201806L
__cpp_lib_hardware_interference_size 201703L
__cpp_lib_launder 201606L

View File

@ -29,6 +29,7 @@
__cpp_lib_complex_udls 201309L
__cpp_lib_concepts 201806L
__cpp_lib_constexpr_swap_algorithms 201806L
__cpp_lib_destroying_delete 201806L
__cpp_lib_enable_shared_from_this 201603L
__cpp_lib_exchange_function 201304L
__cpp_lib_execution 201603L
@ -75,6 +76,7 @@
__cpp_lib_string_udls 201304L
__cpp_lib_string_view 201606L
__cpp_lib_to_chars 201611L
__cpp_lib_three_way_comparison 201711L
__cpp_lib_transformation_trait_aliases 201304L
__cpp_lib_transparent_operators 201510L
__cpp_lib_tuple_element_t 201402L