Mercurial > projects > dstress
view run/new_11.d @ 1627:e1b954780837
undo accidental changes
author | Moritz Warning <moritzwarning@web.de> |
---|---|
date | Thu, 06 Jan 2011 16:03:25 +0100 |
parents | b3da1b510a19 |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Auhthor$ module dstress.run.new_11; int counter; class MyClass{ this(){ } new(size_t size){ assert(counter==0); counter++; return (new byte[size]).ptr; } } int main(){ MyClass c; assert(counter==0); c = new MyClass(); assert(counter==1); return 0; }