/
niceSOFT
/
valgrind
Обзор
Документация
Войти
/
niceSOFT
/
valgrind
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
drd/tests/new_delete.cpp
19 строк
300 B
Bart Van Assche
Renamed exp-drd directory into drd. Moved drd from the experimental tool class to the class of regular tools.
04 июл 2008, 19:14
04 июл 2008, 19:14
6e368a9
Код
Авторство
О чём код?
/** Simple regression test triggering the C++ operators new and delete. */ #include <stdio.h> int main(int argc, char** argv) { int zero = 0; int* p = new int; int* q = new int[733]; delete[] q; delete p; q = new int[zero]; delete q; fprintf(stderr, "Success.\n"); return 0; }