view norun/delete_03.d @ 1579:1802d6b67634

[Issue 1666] New: 64-bit gdc programs cannot allocate large arrays <david@acz.org> 2007-11-12 http://d.puremagic.com/issues/show_bug.cgi?id=1666
author thomask
date Fri, 22 Feb 2008 07:54:04 +0000
parents fbee62becd2c
children
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 = new MyStruct();
	assert(t);
}

int main(){
	test();
	std.gc.fullCollect();
	std.gc.minimize();
	return 0;
}