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: c++03, c++11
10 // <shared_mutex>
11 
12 // template <class Mutex> class shared_lock;
13 
14 // shared_lock(shared_lock const&) = delete;
15 
16 #include <shared_mutex>
17 
18 std::shared_timed_mutex m;
19 
main(int,char **)20 int main(int, char**)
21 {
22     std::shared_lock<std::shared_timed_mutex> lk0(m);
23     std::shared_lock<std::shared_timed_mutex> lk = lk0;
24 
25   return 0;
26 }
27