Mercurial > projects > dstress
view run/d/delete_14_B.d @ 1279:23fe17e22a63
partial review
author | thomask |
---|---|
date | Mon, 25 Dec 2006 15:07:48 +0000 |
parents | 9dcac8d4e97f |
children | 81222734adf3 |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ <h3r3tic@mat.uni.torun.pl> // @date@ 2006-05-23 // @uri@ news:bug-154-3@http.d.puremagic.com/bugzilla/ module dstress.run.d.delete_14_B; class Foo{ this(){ } new (size_t s){ return (new byte[s]).ptr; } delete(void* p){ if (p){ delete p; } } } int main() { Foo f = new Foo(); delete f; return 0; }