blob: 82e5bc51416ac2e5845b85d6743ab22793e4003b [file] [log] [blame]
#include <new>
// At one point, Valgrind wasn't overriding these 'nothrow' versions; since
// they call malloc(), the calls to 'delete' caused bogus mismatch errors.
int main()
{
int * a = new (std::nothrow) int;
int * b = new (std::nothrow) int[5];
delete a;
delete [] b;
}