alloc/arena: disallow implicit copy constructor in test obj

fixes a build warning under clang
This commit is contained in:
Danny Robson 2016-07-28 13:38:34 +10:00
parent 8cc4c1e82a
commit 70170f4205

View File

@ -7,6 +7,8 @@ static char g_backing[1024*1024];
struct setter {
setter (const setter&) = delete;
setter (bool &_target):
target (_target)
{ target = false; }
@ -30,7 +32,7 @@ main (void)
// double check our testing object is working, because I'm tired and stupid
{
auto val = setter (flag);
setter val (flag);
CHECK (!flag);
}
CHECK (flag);