blob: a6615b77aa42a789159bce30a6314fd6b5c1a789 [file] [log] [blame]
pure @system unittest
{
import std.experimental.allocator.gc_allocator;
auto buffer = GCAllocator.instance.allocate(1024 * 1024 * 4);
// deallocate upon scope's end (alternatively: leave it to collection)
scope(exit) GCAllocator.instance.deallocate(buffer);
//...
}