/
niceSOFT
/
valgrind
Обзор
Документация
Войти
/
niceSOFT
/
valgrind
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
memcheck/tests/new_nothrow.cpp
12 строк
298 B
Nicholas Nethercote
Added interceptions for:
09 окт 2003, 19:40
09 окт 2003, 19:40
e5cca05
Код
Авторство
О чём код?
#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; }