2015-09-06 14:46:46 -04:00
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
//
|
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
|
//
|
|
|
|
|
// This file is dual licensed under the MIT and the University of Illinois Open
|
|
|
|
|
// Source Licenses. See LICENSE.TXT for details.
|
|
|
|
|
//
|
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
2016-07-23 16:47:26 -04:00
|
|
|
// UNSUPPORTED: libcpp-has-no-threads
|
|
|
|
|
|
2015-09-06 14:46:46 -04:00
|
|
|
// <mutex>
|
|
|
|
|
|
|
|
|
|
// template <class Mutex> class lock_guard;
|
|
|
|
|
|
|
|
|
|
// explicit lock_guard(mutex_type& m);
|
|
|
|
|
|
|
|
|
|
#include <mutex>
|
|
|
|
|
|
|
|
|
|
int main()
|
|
|
|
|
{
|
2016-07-23 16:47:26 -04:00
|
|
|
std::mutex m;
|
|
|
|
|
std::lock_guard<std::mutex> lg = m; // expected-error{{no viable conversion}}
|
2015-09-06 14:46:46 -04:00
|
|
|
}
|