aboutsummaryrefslogtreecommitdiff
path: root/tests/conformance/6-ownership/recast_back_to_m.zc
blob: 578494551bf7e9532edff70c031a18cb51601378 (plain) (blame)
1
2
3
4
5
6
7
// expect error: p: can't be recast back to m
// spec 6.7
include rt;
void pn(int x) { rt.put_n(x); rt.put_c(10); }
int* g;
fn main() { int* p = rt.new(2); d*p; m*p; g = p; return 0; }
// zc0: skip