q/tests/programs/chained-calls.q

7 lines
No EOL
77 B
Text

main() {
assert f(1) + f(2) + f(3) == 9
}
f(x int) -> int {
return x + 1
}