[RISCV] Fix mgather -> riscv.masked.strided.load combine not extending indices (...
[llvm-project.git] / libcxx / test / std / thread / thread.mutex / thread.lock / thread.lock.shared / thread.lock.shared.cons / default.pass.cpp
blob3304e7526e3ce7a7030b37d86264834cd237e6b7
1 //===----------------------------------------------------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 // UNSUPPORTED: no-threads
10 // UNSUPPORTED: c++03, c++11
12 // <shared_mutex>
14 // template <class Mutex> class shared_lock;
16 // shared_lock();
18 #include <shared_mutex>
19 #include <cassert>
21 #include "test_macros.h"
23 int main(int, char**)
25 std::shared_lock<std::shared_timed_mutex> ul;
26 assert(!ul.owns_lock());
27 assert(ul.mutex() == nullptr);
29 return 0;