5 int* fpointer
= (int*)malloc(10);
6 delete fpointer
; // should give warning (or two if sized delete is used)
7 fpointer
= (int*)malloc(10);
8 delete [] fpointer
; // should give warning
9 fpointer
= (int*)malloc(10);
10 free (fpointer
); // should work!
12 int* nvec
= new int[10];
13 delete nvec
; // should give a warning (or two if sized delete is used)
15 free (nvec
); // should give a warning
17 delete [] nvec
; // should work!
20 delete [] n
; // should give a warning
22 free(n
); // should give a warning
24 delete n
; // should work!