[libcxx-commits] [libcxx] afc8b49 - [libcxx] Delete pointer in shared_ptr deduction test.
via libcxx-commits
libcxx-commits at lists.llvm.org
Fri May 8 12:19:53 PDT 2020
Author: zoecarver
Date: 2020-05-08T12:19:38-07:00
New Revision: afc8b49782f37524ccde82c54a9a2eb09a40f869
URL: https://github.com/llvm/llvm-project/commit/afc8b49782f37524ccde82c54a9a2eb09a40f869
DIFF: https://github.com/llvm/llvm-project/commit/afc8b49782f37524ccde82c54a9a2eb09a40f869.diff
LOG: [libcxx] Delete pointer in shared_ptr deduction test.
Updates the dummy deleter in deduction.pass.cpp to delete the pointer argument. This will fix the asan bots.
Added:
Modified:
libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.const/deduction.pass.cpp
Removed:
################################################################################
diff --git a/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.const/deduction.pass.cpp b/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.const/deduction.pass.cpp
index 888cec620d7a..d6f10c05aac8 100644
--- a/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.const/deduction.pass.cpp
+++ b/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.const/deduction.pass.cpp
@@ -23,7 +23,10 @@
struct A {};
struct D {
- void operator()(void*) const {}
+ void operator()(A* ptr) const
+ {
+ delete ptr;
+ }
};
int main(int, char**)
More information about the libcxx-commits
mailing list