view norun/delete_05.d @ 1597:8b9d4d2f925a

Fix typos in complex tests. See D bug 614.
author Christian Kamm <kamm incasoftware de>
date Tue, 09 Sep 2008 16:53:58 +0200
parents 9faddc0de2ba
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;
}