blob: 4225a3549e19e9d26a22dadfcfb1f7b60147b966 [file] [log] [blame]
// RUN: test.sh -e -t %t %s
//
// TEST: free-007
//
// Description:
// Test invalid memory deallocations
//
#include <stdio.h>
#include <stdlib.h>
int
main (int argc, char ** argv) {
char * array = calloc (1024, 10);
array = realloc (array, 10);
free (&(array[5]));
return 0;
}