Commit f8eed7e6 authored by Males, Sebastian's avatar Males, Sebastian
Browse files

[sm919][jlq19] Add testing for global function pointer use inside a function decl

parent e3c17c78
# function uses a global function
# Output:
# 12
# Exit:
# 0
# Program:
begin
int g(int a) is
return a
end
int h(int b) is
return b + 10
end
int{int} f(int{int} d) is
return g
end
int{int} x = call f(g);
int y = call x(2);
println y
end
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment