mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
12 lines
260 B
D
12 lines
260 B
D
// https://issues.dlang.org/show_bug.cgi?id=20438
|
|
import core.memory;
|
|
|
|
void main()
|
|
{
|
|
auto used0 = GC.stats.usedSize;
|
|
void* z = GC.malloc(100);
|
|
GC.free(z);
|
|
GC.collect();
|
|
auto used1 = GC.stats.usedSize;
|
|
used1 <= used0 || assert(false);
|
|
}
|