view run/m/memory_management_04.d @ 1489:b8c0195059d9

changed nntp: URLs to http: URLs
author thomask
date Mon, 09 Apr 2007 13:47:01 +0000
parents 08dc6d2df0a4
children
line wrap: on
line source

// $HeadURL$
// $Date$
// $Author$

// @author@	Tiago Gasiba <tiago.gasiba@gmail.com>
// @date@	2005-10-28
// @uri@	http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=5232

module dstress.run.m.memory_management_04;

class C{
	double[] x;

	void func(){
		x.length=0;
		x.length=100;
	}
}

int main(){
	C o = new C;

	for(size_t i=0; i<2000; i++){
		o.func();
	}
	return 0;
}