Subset of C language with tree interpreter and bytecode compiler + VM.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

14 lines
212 B

// memory-leak
#include <stdlib.h>
#include <stdio.h>
#include <assert.h>
int main() {
for (int i = 0; i < 10; ++i) {
int *ptr = malloc(sizeof(*ptr));
assert(ptr != 0);
*ptr = i;
}
return 0;
}