aboutsummaryrefslogtreecommitdiff
path: root/tests/conformance/4-statements/memdebug_scrub_fills.zc
blob: ad15e3dd6f1cb6a61d961ecee10556ececcdbb48 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
// expect: 57005/
// spec 4.11: memdebug scrub; fills freed payloads with 57005
include rt;
void pn(int x) { rt.put_n(x); rt.put_c(10); }
memdebug scrub;
fn main() {
	unchecked { int* p = rt.new(int); *p = 5; rt.free(p); pn(*p); }
	return 0;
}
// zc0: skip