diff --git a/libcxx/test/std/utilities/any/any.class/any.cons/default.pass.cpp b/libcxx/test/std/utilities/any/any.class/any.cons/default.pass.cpp --- a/libcxx/test/std/utilities/any/any.class/any.cons/default.pass.cpp +++ b/libcxx/test/std/utilities/any/any.class/any.cons/default.pass.cpp @@ -33,10 +33,8 @@ struct TestConstexpr : public std::any { constexpr TestConstexpr() : std::any() {} }; -#ifdef _LIBCPP_SAFE_STATIC - _LIBCPP_SAFE_STATIC static std::any a; + TEST_SAFE_STATIC static std::any a; ((void)a); -#endif } { DisableAllocationGuard g; ((void)g); diff --git a/libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.ctor/default.pass.cpp b/libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.ctor/default.pass.cpp --- a/libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.ctor/default.pass.cpp +++ b/libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.ctor/default.pass.cpp @@ -31,8 +31,8 @@ #include "unique_ptr_test_helper.h" #if defined(_LIBCPP_VERSION) && TEST_STD_VER >= 11 -_LIBCPP_SAFE_STATIC std::unique_ptr global_static_unique_ptr_single; -_LIBCPP_SAFE_STATIC std::unique_ptr global_static_unique_ptr_runtime; +TEST_SAFE_STATIC std::unique_ptr global_static_unique_ptr_single; +TEST_SAFE_STATIC std::unique_ptr global_static_unique_ptr_runtime; #endif #if TEST_STD_VER >= 11 diff --git a/libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.ctor/nullptr.pass.cpp b/libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.ctor/nullptr.pass.cpp --- a/libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.ctor/nullptr.pass.cpp +++ b/libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.ctor/nullptr.pass.cpp @@ -20,8 +20,8 @@ #if defined(_LIBCPP_VERSION) && TEST_STD_VER >= 11 -_LIBCPP_SAFE_STATIC std::unique_ptr global_static_unique_ptr_single(nullptr); -_LIBCPP_SAFE_STATIC std::unique_ptr global_static_unique_ptr_runtime(nullptr); +TEST_SAFE_STATIC std::unique_ptr global_static_unique_ptr_single(nullptr); +TEST_SAFE_STATIC std::unique_ptr global_static_unique_ptr_runtime(nullptr); #endif