Mercurial > projects > dstress
changeset 125:42715df986eb
Sean Kelly <sean@f4.ca> news://cmsg75$rom$1@digitaldaemon.com nttp://digitalmars.com/digitalmars.D.bugs:2240
author | thomask |
---|---|
date | Wed, 10 Nov 2004 08:08:54 +0000 |
parents | 60390d21ea7d |
children | bd8caff749cf |
files | run/throw_02.d run/throw_03.d |
diffstat | 2 files changed, 44 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/throw_02.d Wed Nov 10 08:08:54 2004 +0000 @@ -0,0 +1,22 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Sean Kelly <sean@f4.ca> +// @date@ 2004-11-10 +// @uri@ news://cmsg75$rom$1@digitaldaemon.com +// @url@ nttp://digitalmars.com/digitalmars.D.bugs:2240 + +class Class{ +} + +typedef Class Alias; + +int main(){ + try{ + throw new Alias(); + }catch{ + return 0; + } + assert(0); +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/throw_03.d Wed Nov 10 08:08:54 2004 +0000 @@ -0,0 +1,22 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Sean Kelly <sean@f4.ca> +// @date@ 2004-11-10 +// @uri@ news://cmsg75$rom$1@digitaldaemon.com +// @url@ nttp://digitalmars.com/digitalmars.D.bugs:2240 + +class Class{ +} + +alias Class Alias; + +int main(){ + try{ + throw new Alias(); + }catch{ + return 0; + } + assert(0); +}