view norun/delete_05.d @ 1586:a74f0139fc3d

Fix tests using typeof on types.
author Christian Kamm <kamm incasoftware de>
date Thu, 21 Aug 2008 15:42:21 +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;
}