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 7fa0873b05c4..2724e35fbef9 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