Closed claude-betz closed 5 months ago
Currently a block like this doesn't require pre-declaration of func(). It should
func()
int main() { int *i; int *j; i = func(); j = *i; /* ERROR: unjusitified indirection */ return 0; } int * func() { int *p; p = malloc(1); free(p); /* p dangling */ return p; /* return dangling ptr */ }
implemented as part of #32
Currently a block like this doesn't require pre-declaration of
func()
. It should