Clean up tests

This commit is contained in:
jD91mZM2
2018-07-22 11:24:50 +02:00
parent e9484e4d60
commit 67d5976622
97 changed files with 84 additions and 84 deletions
+28
View File
@@ -0,0 +1,28 @@
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char ** argv) {
char * ptr = (char *)malloc(256);
printf("malloc %p\n", ptr);
int i;
for(i = 0; i < 256; i++) {
ptr[i] = (char)i;
}
free(ptr);
char * ptrc = (char *)calloc(256, 1);
printf("calloc %p\n", ptrc);
for(i = 0; i < 256; i++) {
ptrc[i] = (char)i;
}
free(ptrc);
char * ptra = (char *)memalign(256, 256);
printf("memalign %p\n", ptra);
for(i = 0; i < 256; i++) {
ptra[i] = (char)i;
}
free(ptra);
return 0;
}