Mercurial > projects > dstress
changeset 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 | 21efb6c131f1 |
children | a5b12edf355b |
files | run/in_out_body_05.d run/in_out_body_06.d run/in_out_body_07.d run/in_out_body_08.d |
diffstat | 4 files changed, 100 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/in_out_body_05.d Mon Feb 07 12:41:48 2005 +0000 @@ -0,0 +1,25 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Anders F Björklund <afb@algonet.se> +// @date@ 2005-02-06 +// @uri@ news:cu5eci$1asg$1@digitaldaemon.com + +module dstress.run.in_out_body_05; + +void test() +in{ + assert(0); +} +body{ +} + +int main(){ + try{ + test(); + }catch(InException ie){ + return 0; + } + assert(0); +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/in_out_body_06.d Mon Feb 07 12:41:48 2005 +0000 @@ -0,0 +1,25 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Anders F Björklund <afb@algonet.se> +// @date@ 2005-02-06 +// @uri@ news:cu5eci$1asg$1@digitaldaemon.com + +module dstress.run.in_out_body_06; + +void test() +in{ + assert(0); +} +body{ +} + +int main(){ + try{ + test(); + }catch{ + return 0; + } + assert(0); +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/in_out_body_07.d Mon Feb 07 12:41:48 2005 +0000 @@ -0,0 +1,25 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Anders F Björklund <afb@algonet.se> +// @date@ 2005-02-06 +// @uri@ news:cu5eci$1asg$1@digitaldaemon.com + +module dstress.run.in_out_body_07; + +void test() +out{ + assert(0); +} +body{ +} + +int main(){ + try{ + test(); + }catch{ + return 0; + } + assert(0); +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/in_out_body_08.d Mon Feb 07 12:41:48 2005 +0000 @@ -0,0 +1,25 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Anders F Björklund <afb@algonet.se> +// @date@ 2005-02-06 +// @uri@ news:cu5eci$1asg$1@digitaldaemon.com + +module dstress.run.in_out_body_08; + +void test() +out{ + assert(0); +} +body{ +} + +int main(){ + try{ + test(); + }catch(OutException oe){ + return 0; + } + assert(0); +}