blob: eed4c2d46db8e1a1148f5f547f04ff648046c705 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
// expect: 57005/
// spec 4.11: memdebug scrub; fills freed payloads with 57005 (read through asm, which the use-after-free check does not see)
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; word a = p; rt.free(p); pn(asm { a @ @ }); }
return 0;
}
// zc0: skip
|