xref: /netbsd-src/external/gpl3/gcc/dist/libphobos/testsuite/libphobos.gc/nocollect.d (revision b1e838363e3c6fc78a55519254d99869742dd33c)
1 // https://issues.dlang.org/show_bug.cgi?id=20567
2 
3 import core.memory;
4 
main()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 }