Mercurial > projects > dstress
view run/d/delete_14_B.d @ 1091:9dcac8d4e97f
post DMD-0.163 review
author | thomask |
---|---|
date | Fri, 21 Jul 2006 11:15:26 +0000 |
parents | 740c7e3dae39 |
children | 23fe17e22a63 |
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]; } delete(void* p){ if (p){ delete p; } } } int main() { Foo f = new Foo(); delete f; return 0; }