any expression, wrapped in void-returning delegate if necessary
file where test is invoked
line where test is invoked
TestException if unexpected allocation happens
testNoAlloc({} ()); testThrown!(TestException)( testNoAlloc({ auto x = new int; } ()) );
Verifies that call to expr does not allocate GC memory
This is achieved by checking GC usage stats before and after the call.