[libcxx-commits] [libcxx] ac65e3d - [libc++] Fix copy/paste error that broke a test

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Mon Sep 21 17:30:00 PDT 2020


Author: Louis Dionne
Date: 2020-09-21T20:29:54-04:00
New Revision: ac65e3d2ce10d6867b62faf107ff2aed05086ecf

URL: https://github.com/llvm/llvm-project/commit/ac65e3d2ce10d6867b62faf107ff2aed05086ecf
DIFF: https://github.com/llvm/llvm-project/commit/ac65e3d2ce10d6867b62faf107ff2aed05086ecf.diff

LOG: [libc++] Fix copy/paste error that broke a test

Added: 
    

Modified: 
    libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.mod/reset_pointer_deleter_allocator.pass.cpp

Removed: 
    


################################################################################
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<A>::count == 1);
         assert(test_deleter<A>::dealloc_count == 0);
 #ifndef TEST_HAS_NO_RTTI
-        std::get_deleter<test_deleter<A> >(p)
+        test_deleter<A>* d = std::get_deleter<test_deleter<A> >(p);
         assert(d);
         assert(d->state() == 3);
 #endif


        


More information about the libcxx-commits mailing list