c++: lambda capture and explicit object parm
[official-gcc.git] / libphobos / testsuite / libphobos.gc / issue22843.d
blobbf6e830f59807a6fd89561b67a2a1d6dd3786ee6
1 import core.memory;
2 void main()
4 auto collections = GC.profileStats().numCollections;
5 // loop until we trigger a collection
6 for (;;)
8 cast(void)GC.malloc(100_000, GC.BlkAttr.NO_SCAN);
9 if (GC.profileStats().numCollections == collections+1)
10 break;