summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.guard/variadic_copy.fail.cpp
diff options
context:
space:
mode:
authorMarshall Clow <mclow.lists@gmail.com>2017-03-24 03:40:36 +0000
committerMarshall Clow <mclow.lists@gmail.com>2017-03-24 03:40:36 +0000
commit6015dd11c875b9467c93221f19e5d59b0522757a (patch)
treedde732f117aad6ed353d8d067f047f1d0ce663e6 /libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.guard/variadic_copy.fail.cpp
parent36f2e0eee834fca853e6e0df6b4fa76b06c0f329 (diff)
downloadbcm5719-llvm-6015dd11c875b9467c93221f19e5d59b0522757a.tar.gz
bcm5719-llvm-6015dd11c875b9467c93221f19e5d59b0522757a.zip
Implement Pp0156r2: 'Variadic Lock Guard, version 5' Reviewed as https://reviews.llvm.org/D31163.
llvm-svn: 298681
Diffstat (limited to 'libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.guard/variadic_copy.fail.cpp')
-rw-r--r--libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.guard/variadic_copy.fail.cpp42
1 files changed, 0 insertions, 42 deletions
diff --git a/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.guard/variadic_copy.fail.cpp b/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.guard/variadic_copy.fail.cpp
deleted file mode 100644
index c7fd0e94b77..00000000000
--- a/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.guard/variadic_copy.fail.cpp
+++ /dev/null
@@ -1,42 +0,0 @@
-//===----------------------------------------------------------------------===//
-//
-// 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.
-//
-//===----------------------------------------------------------------------===//
-
-// UNSUPPORTED: libcpp-has-no-threads
-// UNSUPPORTED: c++98, c++03
-
-// <mutex>
-
-// template <class ...Mutex> class lock_guard;
-
-// lock_guard(lock_guard const&) = delete;
-
-// MODULES_DEFINES: _LIBCPP_ABI_VARIADIC_LOCK_GUARD
-#define _LIBCPP_ABI_VARIADIC_LOCK_GUARD
-#include <mutex>
-
-int main()
-{
- using M = std::mutex;
- M m0, m1, m2;
- {
- using LG = std::lock_guard<>;
- const LG Orig;
- LG Copy(Orig); // expected-error{{call to deleted constructor of 'LG'}}
- }
- {
- using LG = std::lock_guard<M, M>;
- const LG Orig(m0, m1);
- LG Copy(Orig); // expected-error{{call to deleted constructor of 'LG'}}
- }
- {
- using LG = std::lock_guard<M, M, M>;
- const LG Orig(m0, m1, m2);
- LG Copy(Orig); // expected-error{{call to deleted constructor of 'LG'}}
- }
-}
OpenPOWER on IntegriCloud