diff --git a/libcxx/test/std/containers/sequences/array/array.creation/to_array.pass.cpp b/libcxx/test/std/containers/sequences/array/array.creation/to_array.pass.cpp --- a/libcxx/test/std/containers/sequences/array/array.creation/to_array.pass.cpp +++ b/libcxx/test/std/containers/sequences/array/array.creation/to_array.pass.cpp @@ -82,6 +82,7 @@ assert(arr[i].get() == i && source[i].get() == 0); } +#ifndef _MSC_VER // Test C99 compound literal. { auto arr = std::to_array((int[]){3, 4}); @@ -89,6 +90,7 @@ assert(arr[0] == 3); assert(arr[1] == 4); } +#endif // ! _MSC_VER // Test explicit type. {