Fix new[] / delete mismatch. #745
This commit is contained in:
@@ -100,7 +100,7 @@ static void various_tests() {
|
||||
auto tbuf = new unsigned char[sizeof(Test)];
|
||||
t = new (tbuf) Test(42);
|
||||
t->~Test();
|
||||
delete tbuf;
|
||||
delete[] tbuf;
|
||||
}
|
||||
|
||||
class Static {
|
||||
|
||||
Reference in New Issue
Block a user