view run/b/break_12_A.d @ 1630:d0efa3ae5522 default tip

run/mini/naked_asm5: New x86_64 ABI passes the arguments in reverse order.
author David Nadlinger <code@klickverbot.at>
date Sat, 23 Apr 2011 22:57:32 +0200
parents 5ef63ca6e8c3
children
line wrap: on
line source

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

// @author@	Juan Jose Comellas <juanjo@comellas.com.ar>
// @date@	2006-11-30
// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=621
// @desc@	When inside a loop, if you call break inside a try block the finally block is never executed

module dstress.run.b.break_12_A;

int main(){
	int status = 1;

	while(true){
		try{
			status += 1;
			break;
		}finally{
			status *= 7;
		}
	}
	if(status != 14){
		assert(0);
	}

	return 0;
}