Files
hakmem/tests/ld_smoke.c

13 lines
278 B
C

#include <stdio.h>
#include <stdlib.h>
int main(void) {
void* p = malloc(1024);
if (!p) { perror("malloc"); return 1; }
for (int i=0;i<1024;i++) ((unsigned char*)p)[i]=(unsigned char)i;
free(p);
puts("[OK] LD smoke (malloc/free) passed.");
return 0;
}