[libcxx-commits] [libcxx] 310255a - [libcxx] Fix copy_move.pass test
Haowei Wu via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Jul 19 16:52:57 PDT 2023
Author: Haowei Wu
Date: 2023-07-19T16:52:10-07:00
New Revision: 310255abef23ba17066e730fddbbc2eb33fa6f26
URL: https://github.com/llvm/llvm-project/commit/310255abef23ba17066e730fddbbc2eb33fa6f26
DIFF: https://github.com/llvm/llvm-project/commit/310255abef23ba17066e730fddbbc2eb33fa6f26.diff
LOG: [libcxx] Fix copy_move.pass test
When LLVM is built under MSVC and libcxx ABI is set to 2, the
'copy_move.pass' test will unexpectedly pass. This patch mitigate
this issue by setting this test will only expecting FAIL when libcxx
ABI version is set to 1.
This is a re-land of be9f55f4fff47badcdca17be5bcc0a4a15894739
Differential Revision: https://reviews.llvm.org/D155760
Fixes: https://github.com/llvm/llvm-project/issues/63442
Added:
Modified:
libcxx/test/std/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/copy_move.pass.cpp
Removed:
################################################################################
diff --git a/libcxx/test/std/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/copy_move.pass.cpp b/libcxx/test/std/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/copy_move.pass.cpp
index 6ad6e2a9e813df..4a2a272ae0a3b9 100644
--- a/libcxx/test/std/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/copy_move.pass.cpp
+++ b/libcxx/test/std/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/copy_move.pass.cpp
@@ -8,7 +8,7 @@
// FIXME: In MSVC mode, even "std::function<int(int)> f(aref);" causes
// allocations.
-// XFAIL: target=x86_64-pc-windows-msvc && stdlib=libc++
+// XFAIL: target=x86_64-pc-windows-msvc && stdlib=libc++ && libcpp-abi-version=1
// UNSUPPORTED: c++03
More information about the libcxx-commits
mailing list