Home | History | Annotate | Download | only in tests
      1 #include <stdio.h>
      2 
      3 static char buf[10000];
      4 static int bufi = 0;
      5 void* malloc(size_t i) {
      6    bufi += i;
      7    return buf + bufi - i;
      8 }
      9 
     10 void free(void*ptr) {
     11 }
     12 
     13 int main (void)
     14 {
     15    char *p;
     16    p = malloc(10);
     17    p = malloc(123);
     18    free(p);
     19    return 0;
     20 }
     21 
     22