@@ -1,10 +1,8 @@
|
||||
#include <stdio.h>
|
||||
#include <errno.h>
|
||||
|
||||
int
|
||||
main ()
|
||||
{
|
||||
errno = ENOSYS;
|
||||
puts ("I: Hello KolibriOS from GCC!");
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -21,8 +21,8 @@ main ()
|
||||
for (size_t i = 0; i < 1000; i++)
|
||||
{
|
||||
void *ptr = malloc (9999);
|
||||
memset (ptr, 0xFF, 9999);
|
||||
assert (ptr != NULL);
|
||||
memset (ptr, 0xFF, 9999);
|
||||
free (ptr);
|
||||
}
|
||||
|
||||
@@ -37,9 +37,9 @@ main ()
|
||||
// free()
|
||||
for (size_t i = 0; i < MAX_ALLOCS; i++)
|
||||
{
|
||||
free(allocs[i]);
|
||||
free (allocs[i]);
|
||||
}
|
||||
|
||||
_ksys_dbg_print("I: Malloc test: OK");
|
||||
_ksys_dbg_print ("I: Malloc test: OK");
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user