blob: 45664c1633385059abc317c7d06adeb080075198 [file] [log] [blame]
/** 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;
}