view run/finally_01.d @ 1383:52c9e86b6486

@url@ -> @uri@
author thomask
date Sun, 04 Mar 2007 13:07:35 +0000
parents 7aa29e681c0a
children 6e4063f99377
line wrap: on
line source

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

// @author@	Sean Kelly <sean@f4.ca>
// @date	2004-11-16
// @uri@	news:cndnk4$17ld$1@digitaldaemon.com
// @uri@	nntp://digitalmars.com/digitalmars.D.bugs/2283

module dstress.run.finally_01;

int main(){
	int status=0;
	try{
		try{
			status++;
			assert(status==1);
			throw new Exception("first");
		}finally{
			status++;
			assert(status==2);
			status++;
			throw new Exception("second");
		}
	}catch(Exception e){
		assert(status==3);
	}
	return 0;
}