view run/unittest_04.d @ 338:1f6cf5ccfbc9

1) updated rules to dmd-0.119 2) added __DSTRESS_ELINE__ tags
author thomask
date Mon, 21 Mar 2005 20:45:57 +0000
parents
children 1e6afb94ce6d
line wrap: on
line source

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

// unittests inside of structs allowed since dmd-0.118

// __DSTRESS_DFLAGS__ -unittest

module dstress.run.unittest_04;

bool tested;

struct MyStruct{
	unittest{
		assert(!tested);
		tested=true;
	}
}

int main(){
	assert(tested);
	return 0;
}