fix dereferencing function pointer codegen

This commit is contained in:
pommicket 2022-02-13 09:33:05 -05:00
parent 8c82a83778
commit 07faf56f7d
3 changed files with 18 additions and 7 deletions

View file

@ -12,7 +12,7 @@ long fibonacci(long x) {
}
int main(int argc, char **argv) {
double x = 3.5;
return factorial(x);
long (*fp)(long) = factorial;
return (*fp)(6);
}