blob: 56d8badbc09cf00a2a50cbfd2b27be90bbaf8e61 (
plain) (
blame)
1
2
3
4
5
6
|
// 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; }
|