From 11e0876bb2098ad734e9f5bbae31ce6ebb9f84cf Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Wed, 11 Jun 2014 17:50:14 +0000 Subject: [PATCH] SmallVectorTest: Make the deleted member functions private to help MSVC users. llvm-svn: 210665 --- llvm/unittests/ADT/SmallVectorTest.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/llvm/unittests/ADT/SmallVectorTest.cpp b/llvm/unittests/ADT/SmallVectorTest.cpp index 2d2668aca949..95bf33e5bfba 100644 --- a/llvm/unittests/ADT/SmallVectorTest.cpp +++ b/llvm/unittests/ADT/SmallVectorTest.cpp @@ -143,6 +143,7 @@ struct NonCopyable { NonCopyable() {} NonCopyable(NonCopyable &&) {} NonCopyable &operator=(NonCopyable &&) { return *this; } +private: NonCopyable(const NonCopyable &) LLVM_DELETED_FUNCTION; NonCopyable &operator=(const NonCopyable &) LLVM_DELETED_FUNCTION; };