view run/return_04.d @ 1594:c970971fb408

Remove nocompile/a/arrayOp_01: since array ops are now supported, it is no longer valid and needs to be replaced by a set of array op tests.
author Christian Kamm <kamm incasoftware de>
date Thu, 28 Aug 2008 17:33:00 +0200
parents 014844597bbd
children
line wrap: on
line source

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

module dstress.run.return_04;

int status;

int test(char[][] args){
	try{
		try{
			if(args.length==1){
				return -1;
			}
		}finally{
			assert(status==0);
			status+=2;
		}
	}finally{
		assert(status==2);
		status+=3;
	}
	return 0;
}

int main(char[][] args){
	assert(status == 0);
	assert(args.length == 1);
	assert(test(args) == -1);
	assert(status == 5);
	return 0;
}