Mercurial > projects > dstress
annotate run/in_out_body_08.d @ 275:62ebf330f1be
InException and OutException
Anders F Bj?rklund <afb@algonet.se>
2005-02-06
news:cu5eci$1asg$1@digitaldaemon.com
author | thomask |
---|---|
date | Mon, 07 Feb 2005 12:41:48 +0000 |
parents | |
children | 1e6afb94ce6d |
rev | line source |
---|---|
275 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // @author@ Anders F Björklund <afb@algonet.se> | |
6 // @date@ 2005-02-06 | |
7 // @uri@ news:cu5eci$1asg$1@digitaldaemon.com | |
8 | |
9 module dstress.run.in_out_body_08; | |
10 | |
11 void test() | |
12 out{ | |
13 assert(0); | |
14 } | |
15 body{ | |
16 } | |
17 | |
18 int main(){ | |
19 try{ | |
20 test(); | |
21 }catch(OutException oe){ | |
22 return 0; | |
23 } | |
24 assert(0); | |
25 } |