view run/return_02.d @ 192:014844597bbd

1) updated results 2) adjusted mime type to text/x-dsrc (https://bugs.freedesktop.org/show_bug.cgi?id=676)
author thomask
date Sat, 11 Dec 2004 17:46:49 +0000
parents
children
line wrap: on
line source

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

module dstress.run.return_02;

int status;

int test(){
	try{
		return -1;
	}finally{
		status++;
	}
}

int main(){
	assert(status == 0);
	assert(test() == -1);
	assert(status == 1);
	return 0;
}