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 // UNSUPPORTED: libcpp-has-no-threads
11 
12 // <mutex>
13 
14 // template <class Mutex> class lock_guard;
15 
16 // explicit lock_guard(mutex_type& m);
17 
18 #include <mutex>
19 
main()20 int main()
21 {
22     std::mutex m;
23     std::lock_guard<std::mutex> lg = m; // expected-error{{no viable conversion}}
24 }
25