hexagonal-sun / bic

A C interpreter and API explorer.
GNU General Public License v2.0
815 stars 36 forks source link

sizeof(*x) not supported #12

Closed tavianator closed 5 years ago

tavianator commented 5 years ago
$ cat foo.c
void *malloc(unsigned long size);

int main() {
    int *x;
    x = malloc(sizeof(*x));
    return x ? 0 : -1;
}
$ ./src/bic foo.c
Parser Error: <stdin>:5 syntax error, unexpected '*'.
hexagonal-sun commented 5 years ago

Should now be fixed. Thanks for the report!