blob: fc47100947437e361dce640241befb195f065c50 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
// expect: 0/
// spec 6.6
include rt;
struct node { int value; node* prev; node* next; };
fn main() {
memdebug on;
for (int round = 0; round < 50; round++) {
node* a = rt.new(node);
node* b = rt.new(node);
a.next = b;
b.prev = a;
a.value = round;
b.value = b.prev.value;
}
rt.put_n(rt.memreport()); rt.put_c(10);
}
// zc0: skip
|