view nocompile/invariant_07.d @ 1622:d402aa53926c

Add test for bug 3092 written by Manuel K?nig
author Leandro Lucarella <llucax@gmail.com>
date Tue, 19 Oct 2010 19:18:23 -0300
parents ec5e144583ea
children
line wrap: on
line source

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

// invariant is only allowed in classes (dmd-0.104 documentation)

// __DSTRESS_ELINE__ 15

module dstress.nocompile.invariant_07;

int test()
	body{
		return 0;
	}
	invariant(){
		assert(0);
	}

int main(){
	return test();
}