Debian Codegraph @

libphobos/testsuite/libphobos.gc/nocollect.d

raw
1 // https://issues.dlang.org/show_bug.cgi?id=20567
2
3 import core.memory;
4
5 void main()
6 {
7 auto stats = GC.profileStats();
8 assert(stats.numCollections == 0);
9
10 char[] sbuf = new char[256]; // small pool
11 char[] lbuf = new char[2049]; // large pool
12
13 stats = GC.profileStats();
14 assert(stats.numCollections == 0);
15 }