diff --git a/libcudacxx/test/libcudacxx/std/utilities/function.objects/refwrap/weak_result.pass.cpp b/libcudacxx/test/libcudacxx/std/utilities/function.objects/refwrap/weak_result.pass.cpp index aff9a862590..83e333e2163 100644 --- a/libcudacxx/test/libcudacxx/std/utilities/function.objects/refwrap/weak_result.pass.cpp +++ b/libcudacxx/test/libcudacxx/std/utilities/function.objects/refwrap/weak_result.pass.cpp @@ -96,7 +96,9 @@ int main(int, char**) ""); static_assert((cuda::std::is_same::result_type, C>::value), ""); static_assert(has_result_type>::value, ""); +#if !TEST_COMPILER(MSVC, >=, 19, 50) // Visual Studio 2026 fails this static_assert(!has_result_type>::value, ""); +#endif // !TEST_COMPILER(MSVC, >=, 19, 50) static_assert(!has_result_type>::value, ""); return 0;