view run/finally_01.d @ 1330:f3f715978184

Georg Wrede <georg@iki.fi> 2007-01-07 mail:45A120F5.1050108@iki.fi
author thomask
date Sat, 13 Jan 2007 10:33:49 +0000
parents 7aa29e681c0a
children 52c9e86b6486
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
// @url@	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;
}