view norun/delete_05.d @ 392:9faddc0de2ba

1) fixed meta data 2) evade dmd-0.118 loop code
author thomask
date Wed, 06 Apr 2005 18:56:06 +0000
parents 60b4ba82210e
children
line wrap: on
line source

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

// @WARNING@ direct access to Phobos's GC

// __DSTRESS_ELINE__ 15

module dstress.run.delete_05;

import std.gc;

union MyUnion{
	delete(void* p){
		assert(0);
	}
}

void test(){
	MyUnion t;
}

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