diff --git a/test/depr/depr.c.headers/wchar_h.pass.cpp b/test/depr/depr.c.headers/wchar_h.pass.cpp index f86182786..68bea49cf 100644 --- a/test/depr/depr.c.headers/wchar_h.pass.cpp +++ b/test/depr/depr.c.headers/wchar_h.pass.cpp @@ -32,10 +32,14 @@ int main() { mbstate_t mb = {0}; size_t s = 0; - tm tm = {0}; + tm *tm = 0; wint_t w = 0; ::FILE* fp = 0; +#ifdef __APPLE__ __darwin_va_list va; +#else + __builtin_va_list va; +#endif char* ns = 0; wchar_t* ws = 0; static_assert((std::is_same::value), ""); @@ -88,7 +92,7 @@ int main() static_assert((std::is_same::value), ""); static_assert((std::is_same::value), ""); static_assert((std::is_same::value), ""); - static_assert((std::is_same::value), ""); + static_assert((std::is_same::value), ""); static_assert((std::is_same::value), ""); static_assert((std::is_same::value), ""); static_assert((std::is_same::value), ""); diff --git a/test/strings/c.strings/cwchar.pass.cpp b/test/strings/c.strings/cwchar.pass.cpp index 2a0029e19..d0481b706 100644 --- a/test/strings/c.strings/cwchar.pass.cpp +++ b/test/strings/c.strings/cwchar.pass.cpp @@ -32,10 +32,14 @@ int main() { std::mbstate_t mb = {0}; std::size_t s = 0; - std::tm tm = {0}; + std::tm *tm = 0; std::wint_t w = 0; ::FILE* fp = 0; +#ifdef __APPLE__ __darwin_va_list va; +#else + __builtin_va_list va; +#endif char* ns = 0; wchar_t* ws = 0; static_assert((std::is_same::value), ""); @@ -93,7 +97,7 @@ int main() static_assert((std::is_same::value), ""); static_assert((std::is_same::value), ""); static_assert((std::is_same::value), ""); - static_assert((std::is_same::value), ""); + static_assert((std::is_same::value), ""); static_assert((std::is_same::value), ""); static_assert((std::is_same::value), ""); static_assert((std::is_same::value), "");