Fix new[] / delete mismatch.

This commit is contained in:
Marek Knápek 2023-05-09 06:52:57 +02:00
parent 2cbf68b5e7
commit 9c053ecf90

View file

@ -108,7 +108,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 {