Marshall Clow | abadb45 | 2015-06-30 14:04:14 +0000 | [diff] [blame] | 1 | //===----------------------------------------------------------------------===// |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file is dual licensed under the MIT and the University of Illinois Open |
| 6 | // Source Licenses. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | |
| 10 | // <shared_mutex> |
| 11 | |
| 12 | // class shared_mutex; |
| 13 | |
| 14 | // shared_mutex& operator=(const shared_mutex&) = delete; |
| 15 | |
| 16 | #include <shared_mutex> |
| 17 | |
Dan Albert | 1d4a1ed | 2016-05-25 22:36:09 -0700 | [diff] [blame^] | 18 | #include "test_macros.h" |
| 19 | |
Marshall Clow | abadb45 | 2015-06-30 14:04:14 +0000 | [diff] [blame] | 20 | int main() |
| 21 | { |
Dan Albert | 1d4a1ed | 2016-05-25 22:36:09 -0700 | [diff] [blame^] | 22 | #if TEST_STD_VER > 14 |
Marshall Clow | abadb45 | 2015-06-30 14:04:14 +0000 | [diff] [blame] | 23 | std::shared_mutex m0; |
| 24 | std::shared_mutex m1; |
Dan Albert | 1d4a1ed | 2016-05-25 22:36:09 -0700 | [diff] [blame^] | 25 | m1 = m0; |
| 26 | #else |
| 27 | # error |
| 28 | #endif |
Marshall Clow | abadb45 | 2015-06-30 14:04:14 +0000 | [diff] [blame] | 29 | } |