Mercurial > projects > dstress
view norun/delete_03.d @ 630:ecb96b2bf5cb
fixed module declaration
author | thomask |
---|---|
date | Sun, 14 Aug 2005 08:38:17 +0000 |
parents | 9faddc0de2ba |
children | fbee62becd2c |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @WARNING@ direct access to Phobos's GC // __DSTRESS_ELINE__ 15 module dstress.run.delete_03; import std.gc; struct MyStruct{ delete(void* p){ assert(0); } } void test(){ MyStruct t; } int main(){ test(); std.gc.fullCollect(); std.gc.minimize(); return 0; }