aboutsummaryrefslogtreecommitdiff
path: root/tests/conformance/6-ownership/lend_keeps_owner.zc
blob: bb0813cd5e8a0ef08f105e80186457eecf0cbaee (plain) (blame)
1
2
3
4
5
6
7
// expect: 3/3/
// spec 6.6.2
include rt;
void pn(int x) { rt.put_n(x); rt.put_c(10); }
void show(int* p) { pn(*p); }
fn main() { int* q = rt.new(int); *q = 3; show(q); show(q); return 0; }
// zc0: skip