aboutsummaryrefslogtreecommitdiff
path: root/tests/conformance/4-statements/asm_statement_local.zc
blob: 9b7e98561689b72eece200af060a6c94ac7939c6 (plain) (blame)
1
2
3
4
5
// expect: 8/
// spec 4.13.1 example: the name of a local pushes its address
include rt;
void pn(int x) { rt.put_n(x); rt.put_c(10); }
fn main() { int y = 7; asm { y @ 1 + y ! } pn(y); return 0; }