Skip to content

Commit 1ecf6e5

Browse files
committed
[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. llvm-svn: 351991
1 parent 4e4ecae commit 1ecf6e5

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

libcxx/test/support/msvc_stdlib_force_include.hpp

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,14 @@ const AssertionDialogAvoider assertion_dialog_avoider{};
7878

7979
#include <ciso646>
8080

81-
#if _HAS_CXX17
81+
#if _HAS_CXX20
82+
#define TEST_STD_VER 99
83+
#elif _HAS_CXX17
8284
#define TEST_STD_VER 17
83-
#else // _HAS_CXX17
85+
#else // !(_HAS_CXX20 || _HAS_CXX17)
8486
#define TEST_STD_VER 14
85-
#endif // _HAS_CXX17
87+
#endif
88+
89+
#define _LIBCPP_AVAILABILITY_THROW_BAD_ANY_CAST
8690

8791
#endif // SUPPORT_MSVC_STDLIB_FORCE_INCLUDE_HPP

0 commit comments

Comments
 (0)