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++98, c++03, c++11
10 
11 // shared_timed_mutex was introduced in macosx10.12
12 // UNSUPPORTED: with_system_cxx_lib=macosx10.11
13 // UNSUPPORTED: with_system_cxx_lib=macosx10.10
14 // UNSUPPORTED: with_system_cxx_lib=macosx10.9
15 
16 // <shared_mutex>
17 
18 // class shared_timed_mutex;
19 
20 // shared_timed_mutex(const shared_timed_mutex&) = delete;
21 
22 #include <shared_mutex>
23 
24 int main(int, char**)
25 {
26     std::shared_timed_mutex m0;
27     std::shared_timed_mutex m1(m0);
28 
29   return 0;
30 }
31