alloc/arena: disallow implicit copy constructor in test obj
fixes a build warning under clang
This commit is contained in:
parent
8cc4c1e82a
commit
70170f4205
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user