#include #include 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; }