[libcxx-commits] [libcxx] r351991 - [test] Define _LIBCPP_AVAILABILITY_THROW_BAD_ANY_CAST in msvc_stdlib_force_include.hpp

Casey Carter via libcxx-commits libcxx-commits at lists.llvm.org
Wed Jan 23 14:49:44 PST 2019


Author: caseycarter
Date: Wed Jan 23 14:49:44 2019
New Revision: 351991

URL: http://llvm.org/viewvc/llvm-project?rev=351991&view=rev
Log:
[test] Define _LIBCPP_AVAILABILITY_THROW_BAD_ANY_CAST in msvc_stdlib_force_include.hpp

...so the tests under test/std/utilities/any continue to
compile with MSVC's standard library.

While we're here, let's test >C++17 features when _HAS_CXX20.

Modified:
    libcxx/trunk/test/support/msvc_stdlib_force_include.hpp

Modified: libcxx/trunk/test/support/msvc_stdlib_force_include.hpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/support/msvc_stdlib_force_include.hpp?rev=351991&r1=351990&r2=351991&view=diff
==============================================================================
--- libcxx/trunk/test/support/msvc_stdlib_force_include.hpp (original)
+++ libcxx/trunk/test/support/msvc_stdlib_force_include.hpp Wed Jan 23 14:49:44 2019
@@ -78,10 +78,14 @@ const AssertionDialogAvoider assertion_d
 
 #include <ciso646>
 
-#if _HAS_CXX17
+#if _HAS_CXX20
+    #define TEST_STD_VER 99
+#elif _HAS_CXX17
     #define TEST_STD_VER 17
-#else // _HAS_CXX17
+#else // !(_HAS_CXX20 || _HAS_CXX17)
     #define TEST_STD_VER 14
-#endif // _HAS_CXX17
+#endif
+
+#define _LIBCPP_AVAILABILITY_THROW_BAD_ANY_CAST
 
 #endif // SUPPORT_MSVC_STDLIB_FORCE_INCLUDE_HPP




More information about the libcxx-commits mailing list