extern malloc = (i64) => *void; extern free = (*void) => void; import "!stdlib.src"; let main = () => i64 { let x = cast(*i8, malloc(24)); (*(x+cast(*i8, 0))) = 10; (*(x+cast(*i8, 1))) = 20; (*(x+cast(*i8, 2))) = 40; println("%p", x); println("%d", *(x+cast(*i8, 0))); println("%d", *(x+cast(*i8, 1))); println("%d", *(x+cast(*i8, 2))); free(cast(*void, x)); return 0; }; /* Expected stdout: ${SOMEPOINTER} 10 20 40 Expected return: 0 */