Fix PR23041. Use lock_shared() as opposed to lock() in shared_lock test.
llvm-svn: 233367
This commit is contained in:
parent
43adfb30d5
commit
2f135df8f9
|
@ -22,7 +22,7 @@ int main()
|
|||
{
|
||||
#if _LIBCPP_STD_VER > 11
|
||||
std::shared_timed_mutex m;
|
||||
m.lock();
|
||||
m.lock_shared();
|
||||
std::shared_lock<std::shared_timed_mutex> lk(m, std::adopt_lock);
|
||||
assert(lk.mutex() == &m);
|
||||
assert(lk.owns_lock() == true);
|
||||
|
|
Loading…
Reference in New Issue