Debian Codegraph @

libphobos/testsuite/libphobos.gc/recoverfree.d

raw
1 // https://issues.dlang.org/show_bug.cgi?id=20438
2 import core.memory;
3
4 void main()
5 {
6 auto used0 = GC.stats.usedSize;
7 void* z = GC.malloc(100);
8 GC.free(z);
9 GC.collect();
10 auto used1 = GC.stats.usedSize;
11 used1 <= used0 || assert(false);
12 }