mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-09 05:10:23 +00:00
16 lines
250 B
C++
16 lines
250 B
C++
/** Simple regression test triggering the C++ operators new and delete. */
|
|
|
|
#include <stdio.h>
|
|
|
|
int main(int argc, char** argv)
|
|
{
|
|
int* p = new int;
|
|
int* q = new int[733];
|
|
delete[] q;
|
|
delete p;
|
|
|
|
fprintf(stderr, "Success.\n");
|
|
|
|
return 0;
|
|
}
|