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.
 
 

18 regels
222 B

// dangling-pointer
#include <stdlib.h>
#include <stdio.h>
#include <assert.h>
int *alloc() {
int i;
return &i;
}
int main() {
int *ptr = alloc();
assert(ptr);
*ptr = 42;
printf("%d\n", *ptr);
return 0;
}