aboutsummaryrefslogtreecommitdiff
path: root/tests/conformance/4-statements/memdebug_off.zc
blob: 27de5499a021bc256ebaaef1bbe6e211e8a54731 (plain) (blame)
1
2
3
4
5
6
7
8
// expect: 1/
// spec 4.11: memdebug off; stops the checks
include rt;
void pn(int x) { rt.put_n(x); rt.put_c(10); }
memdebug on;
memdebug off;
fn main() { unchecked { int* p = rt.new(int); rt.free(p); rt.free(p); } pn(1); return 0; }
// zc0: skip