Mercurial > projects > dstress
comparison 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 |
comparison
equal
deleted
inserted
replaced
191:c5cbab12376d | 192:014844597bbd |
---|---|
1 // $HeadURL$ | |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 module dstress.run.return_02; | |
6 | |
7 int status; | |
8 | |
9 int test(){ | |
10 try{ | |
11 return -1; | |
12 }finally{ | |
13 status++; | |
14 } | |
15 } | |
16 | |
17 int main(){ | |
18 assert(status == 0); | |
19 assert(test() == -1); | |
20 assert(status == 1); | |
21 return 0; | |
22 } |