[libcxx-commits] [PATCH] D112214: [libcxx] [test] Add a specific XFAIL for a MinGW env failure that is fixed in Clang 14

Martin Storsjö via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Thu Oct 21 03:50:09 PDT 2021


mstorsjo created this revision.
mstorsjo added a reviewer: ldionne.
mstorsjo requested review of this revision.
Herald added a project: libc++.
Herald added a reviewer: libc++.

This issue only occurs when linked statically in MinGW configurations,
and has been fixed for Clang 14 by https://reviews.llvm.org/D109651.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D112214

Files:
  libcxx/test/std/thread/thread.threads/thread.thread.class/thread.thread.constr/F.pass.cpp


Index: libcxx/test/std/thread/thread.threads/thread.thread.class/thread.thread.constr/F.pass.cpp
===================================================================
--- libcxx/test/std/thread/thread.threads/thread.thread.class/thread.thread.constr/F.pass.cpp
+++ libcxx/test/std/thread/thread.threads/thread.thread.class/thread.thread.constr/F.pass.cpp
@@ -16,6 +16,12 @@
 
 // UNSUPPORTED: sanitizer-new-delete
 
+// This fails on MinGW when statically linked, if built with Clang 13 or older.
+// (It's fixed in the upcoming Clang 14, by https://reviews.llvm.org/D109651.)
+// Prior to the fix, when statically linked, the unwind info for the two
+// (default and overridden) operator new implementations clash.
+// XFAIL: target={{.+}}-windows-gnu && !windows-dll && clang-13
+
 #include <thread>
 #include <new>
 #include <atomic>


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D112214.381204.patch
Type: text/x-patch
Size: 835 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20211021/1b531371/attachment.bin>


More information about the libcxx-commits mailing list