aboutsummaryrefslogtreecommitdiff
path: root/tests/conformance/4-statements/asm_function_name.zc
blob: 209e7d4dfd2a42558056b7dee6b6a2790ed2ba99 (plain) (blame)
1
2
3
4
5
6
7
// expect: 3/
// spec 4.13.1: a function name pushes its address
include rt;
void pn(int x) { rt.put_n(x); rt.put_c(10); }
int three() { return 3; }
fn main() { fn() g = asm { three }; pn(g()); return 0; }
// zc0: skip