Home | History | Annotate | Download | only in tests
      1 
      2 #include <stdio.h>
      3 #include <stdlib.h>
      4 
      5 void really ( void );
      6 
      7 int main ( void )
      8 {
      9    really();
     10    return 0;
     11 }
     12 
     13 void really ( void )
     14 {
     15    int i;
     16    char* p = malloc(10);
     17    for (i = 0; i < 10; i++)
     18       p[i] = 'z';
     19    free(p);
     20    p[1] = 'z';
     21    p = malloc(10);
     22    p[2] = 'z';
     23    p[-1] = 'z';
     24 }
     25