Fix PR#23647 - make_shared<volatile bool> - second try

llvm-svn: 238370
Cr-Mirrored-From: sso://chromium.googlesource.com/_direct/external/github.com/llvm/llvm-project
Cr-Mirrored-Commit: a7fb9a041dbcf66e8bff5fefcbdae3fc842bfabc
diff --git a/include/memory b/include/memory
index 4af72c3..a0e7a8b 100644
--- a/include/memory
+++ b/include/memory
@@ -4047,7 +4047,7 @@
         }
 
     _LIBCPP_INLINE_VISIBILITY
-    void __enable_weak_this(const void*) _NOEXCEPT {}
+    void __enable_weak_this(const volatile void*) _NOEXCEPT {}
 
     template <class _Up> friend class _LIBCPP_TYPE_VIS_ONLY shared_ptr;
     template <class _Up> friend class _LIBCPP_TYPE_VIS_ONLY weak_ptr;
diff --git a/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.create/make_shared.volatile.pass.cpp b/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.create/make_shared.volatile.pass.cpp
index 9cb4ff1..1045f93 100644
--- a/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.create/make_shared.volatile.pass.cpp
+++ b/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.create/make_shared.volatile.pass.cpp
@@ -55,7 +55,7 @@
 
 int main()
 {
-//     test<bool>(true);
-//     test<int>(3);
-//     test<double>(5.0);
+    test<bool>(true);
+    test<int>(3);
+    test<double>(5.0);
 }