fix dereferencing function pointer codegen
This commit is contained in:
parent
8c82a83778
commit
07faf56f7d
3 changed files with 18 additions and 7 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue