[libcxx-commits] [PATCH] D129923: Visual C++ doesn't support C99 compound literal

Igor Zhukov via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Sat Jul 16 00:47:55 PDT 2022


fsb4000 created this revision.
fsb4000 added a project: libc++.
Herald added a project: All.
fsb4000 requested review of this revision.
Herald added a subscriber: libcxx-commits.
Herald added a reviewer: libc++.

Fix test libcxx/test/std/containers/sequences/array/array.creation/to_array.pass.cpp


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D129923

Files:
  libcxx/test/std/containers/sequences/array/array.creation/to_array.pass.cpp


Index: libcxx/test/std/containers/sequences/array/array.creation/to_array.pass.cpp
===================================================================
--- libcxx/test/std/containers/sequences/array/array.creation/to_array.pass.cpp
+++ libcxx/test/std/containers/sequences/array/array.creation/to_array.pass.cpp
@@ -82,7 +82,6 @@
       assert(arr[i].get() == i && source[i].get() == 0);
   }

-#ifndef _MSC_VER
   // Test C99 compound literal.
   {
     auto arr = std::to_array((int[]){3, 4});
@@ -90,7 +89,6 @@
     assert(arr[0] == 3);
     assert(arr[1] == 4);
   }
-#endif // ! _MSC_VER

   //  Test explicit type.
   {


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D129923.445200.patch
Type: text/x-patch
Size: 625 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20220716/4acb3f62/attachment.bin>


More information about the libcxx-commits mailing list