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

Mark de Wever via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Sat Jul 16 10:47:58 PDT 2022


This revision was automatically updated to reflect the committed changes.
Closed by commit rG9aea9ab83dc0: Visual C++ doesn't support C99 compound literal (authored by fsb4000, committed by Mordante).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D129923/new/

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,6 +82,7 @@
       assert(arr[i].get() == i && source[i].get() == 0);
   }
 
+#ifndef _MSVC_STL_VERSION
   // 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 // ! _MSVC_STL_VERSION
 
   //  Test explicit type.
   {


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


More information about the libcxx-commits mailing list