forked from OSchip/llvm-project
Fix PR#23647 - make_shared<volatile bool> - second try
llvm-svn: 238370
This commit is contained in:
parent
88a8fc5448
commit
a7fb9a041d
|
@ -4047,7 +4047,7 @@ private:
|
|||
}
|
||||
|
||||
_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;
|
||||
|
|
|
@ -55,7 +55,7 @@ void test(const T &t0)
|
|||
|
||||
int main()
|
||||
{
|
||||
// test<bool>(true);
|
||||
// test<int>(3);
|
||||
// test<double>(5.0);
|
||||
test<bool>(true);
|
||||
test<int>(3);
|
||||
test<double>(5.0);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue