Suppress clang warnings in some tests

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@246399 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Eric Fiselier
2015-08-30 22:04:20 +00:00
parent 9eddf6e1f5
commit 408369b7c9
9 changed files with 55 additions and 28 deletions

View File

@@ -38,8 +38,6 @@ int move_only_constructed = 0;
#if TEST_STD_VER >= 11
class move_only
{
int data;
move_only(const move_only&) = delete;
move_only& operator=(const move_only&)= delete;
@@ -49,6 +47,10 @@ public:
move_only() {++move_only_constructed;}
~move_only() {--move_only_constructed;}
public:
int data; // unused other than to make sizeof(move_only) == sizeof(int).
// but public to suppress "-Wunused-private-field"
};
#endif // TEST_STD_VER >= 11