aboutsummaryrefslogtreecommitdiff
path: root/tests/conformance/6-ownership/u_must_leave.zc
blob: 147d64fc2c7b2c4b4a700241cfa144ec3589cd2b (plain) (blame)
1
2
3
4
5
6
// expect error: p: u object must leave this block
// spec 6.7
include rt;
void pn(int x) { rt.put_n(x); rt.put_c(10); }
fn main() { int* p = rt.new(2); p[0] = 1; u*p; return 0; }
// zc0: skip