Projet_SETI_RISC-V/riscv-gnu-toolchain/gcc/libphobos/testsuite/libphobos.gc/nocollect.d
2023-03-06 14:48:14 +01:00

15 lines
330 B
D

// https://issues.dlang.org/show_bug.cgi?id=20567
import core.memory;
void main()
{
auto stats = GC.profileStats();
assert(stats.numCollections == 0);
char[] sbuf = new char[256]; // small pool
char[] lbuf = new char[2049]; // large pool
stats = GC.profileStats();
assert(stats.numCollections == 0);
}