blob: db81c6d09f66e57f3fc23869c5a7c5fa0b405f0c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// expect: 1/
// spec 4.11: rt.memreport() returns the count of live recorded objects
include rt;
void pn(int x) { rt.put_n(x); rt.put_c(10); }
memdebug on;
fn main() {
unchecked {
int* q = rt.new(3);
int* r = rt.new(2);
rt.free(r);
pn(rt.memreport());
}
return 0;
}
// zc0: skip
|