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

Marshall Clow mclow.lists at gmail.com
Mon Jan 7 08:17:52 PST 2019


Author: marshall
Date: Mon Jan  7 08:17:52 2019
New Revision: 350535

URL: http://llvm.org/viewvc/llvm-project?rev=350535&view=rev
Log:
Add the feature test macros that were defined in p1353r0 to the headers of the appropriate tests. No actual tests yet, so NFC.

Added:
    libcxx/trunk/test/std/language.support/support.limits/support.limits.general/compare.version.pass.cpp
Modified:
    libcxx/trunk/test/std/language.support/support.limits/support.limits.general/new.version.pass.cpp
    libcxx/trunk/test/std/language.support/support.limits/support.limits.general/version.version.pass.cpp

Added: libcxx/trunk/test/std/language.support/support.limits/support.limits.general/compare.version.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/language.support/support.limits/support.limits.general/compare.version.pass.cpp?rev=350535&view=auto
==============================================================================
--- libcxx/trunk/test/std/language.support/support.limits/support.limits.general/compare.version.pass.cpp (added)
+++ libcxx/trunk/test/std/language.support/support.limits/support.limits.general/compare.version.pass.cpp Mon Jan  7 08:17:52 2019
@@ -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
+*/
+}

Modified: libcxx/trunk/test/std/language.support/support.limits/support.limits.general/new.version.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/language.support/support.limits/support.limits.general/new.version.pass.cpp?rev=350535&r1=350534&r2=350535&view=diff
==============================================================================
--- libcxx/trunk/test/std/language.support/support.limits/support.limits.general/new.version.pass.cpp (original)
+++ libcxx/trunk/test/std/language.support/support.limits/support.limits.general/new.version.pass.cpp Mon Jan  7 08:17:52 2019
@@ -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
 

Modified: libcxx/trunk/test/std/language.support/support.limits/support.limits.general/version.version.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/language.support/support.limits/support.limits.general/version.version.pass.cpp?rev=350535&r1=350534&r2=350535&view=diff
==============================================================================
--- libcxx/trunk/test/std/language.support/support.limits/support.limits.general/version.version.pass.cpp (original)
+++ libcxx/trunk/test/std/language.support/support.limits/support.limits.general/version.version.pass.cpp Mon Jan  7 08:17:52 2019
@@ -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




More information about the libcxx-commits mailing list