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