Skip to content

Commit

Permalink
[libcxx] [test] Change LIBCXX-WINDOWS-FIXME into XFAIL: msvc for case…
Browse files Browse the repository at this point in the history
…s that succeed in mingw configurations

Add comments about the reasons for the XFAILs where there was none before.

Differential Revision: https://reviews.llvm.org/D112211
  • Loading branch information
mstorsjo committed Oct 29, 2021
1 parent d758069 commit a21a6ed
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,12 @@

// test get_new_handler

// XFAIL: LIBCXX-WINDOWS-FIXME
// FIXME: When libc++ is linked against vcruntime (i.e. the default config in
// MSVC mode), the declarations of std::set_new_handler and std::get_new_handler
// are provided by vcruntime/UCRT's new.h. However, that header actually only
// declares set_new_handler - it's missing a declaration of get_new_handler.

// XFAIL: msvc

#include <new>
#include <cassert>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

// UNSUPPORTED: no-exceptions

// This test fails due to a stack overflow
// XFAIL: LIBCXX-WINDOWS-FIXME
// FIXME: This test fails in MSVC mode due to a stack overflow
// XFAIL: msvc

// <exception>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
//
//===----------------------------------------------------------------------===//

// This test needs to be rewritten for the Windows exception_ptr semantics
// FIXME: This test needs to be rewritten for the MSVC exception_ptr semantics
// which copy the exception each time the exception_ptr is copied.
// XFAIL: LIBCXX-WINDOWS-FIXME
// XFAIL: msvc

// UNSUPPORTED: no-exceptions
// <exception>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
//
//===----------------------------------------------------------------------===//

// XFAIL: LIBCXX-WINDOWS-FIXME
// FIXME: In MSVC mode, even "std::function<int(int)> f(aref);" causes
// allocations.
// XFAIL: msvc

// <functional>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,13 @@

// UNSUPPORTED: c++03, c++11, c++14

// XFAIL: LIBCXX-WINDOWS-FIXME
// FIXME: Building this in MSVC mode fails when instantiating two cases of
// std::function that only differ in constness of the return type, with this
// error:
// include/c++/v1/__functional/function.h:254:31: error: definition with same mangled name '??0?$__base@$$A6AXXZ@__function@__1@std@@QEAA@XZ' as another definition
// _LIBCPP_INLINE_VISIBILITY __base() {}
// include/c++/v1/__functional/function.h:254:31: note: previous definition is here
// XFAIL: msvc

// <functional>

Expand Down

0 comments on commit a21a6ed

Please sign in to comment.