diff run/return_04.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 diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/return_04.d	Sat Dec 11 17:46:49 2004 +0000
@@ -0,0 +1,32 @@
+// $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;
+}