From ac65e3d2ce10d6867b62faf107ff2aed05086ecf Mon Sep 17 00:00:00 2001 From: Louis Dionne Date: Mon, 21 Sep 2020 20:28:14 -0400 Subject: [PATCH] [libc++] Fix copy/paste error that broke a test --- .../util.smartptr.shared.mod/reset_pointer_deleter_allocator.pass.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.mod/reset_pointer_deleter_allocator.pass.cpp b/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.mod/reset_pointer_deleter_allocator.pass.cpp index 7fa0873..2724e35 100644 --- a/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.mod/reset_pointer_deleter_allocator.pass.cpp +++ b/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.mod/reset_pointer_deleter_allocator.pass.cpp @@ -54,7 +54,7 @@ int main(int, char**) assert(test_deleter::count == 1); assert(test_deleter::dealloc_count == 0); #ifndef TEST_HAS_NO_RTTI - std::get_deleter >(p) + test_deleter* d = std::get_deleter >(p); assert(d); assert(d->state() == 3); #endif -- 2.7.4