Fix PR23041. Use lock_shared() as opposed to lock() in shared_lock test.

llvm-svn: 233367
This commit is contained in:
Eric Fiselier 2015-03-27 07:07:51 +00:00
parent 43adfb30d5
commit 2f135df8f9
1 changed files with 1 additions and 1 deletions

View File

@ -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);