drd/tests/sem_open: Change the semaphore name (#331839)
[valgrind.git] / memcheck / tests / new_nothrow.cpp
blob82e5bc51416ac2e5845b85d6743ab22793e4003b
1 #include <new>
3 // At one point, Valgrind wasn't overriding these 'nothrow' versions; since
4 // they call malloc(), the calls to 'delete' caused bogus mismatch errors.
6 int main()
8 int * a = new (std::nothrow) int;
9 int * b = new (std::nothrow) int[5];
10 delete a;
11 delete [] b;