blob: 8ab42736d3ba779dc7529bf35c269543153c1ad5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// expect error: leak: line 8
// spec 4.11: leak: line N W words per live recorded object (N is the allocation line)
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(q);
rt.memreport();
}
return 0;
}
// zc0: skip
|