Mercurial > projects > dstress
view run/c/catch_08_D.d @ 1630:d0efa3ae5522 default tip
run/mini/naked_asm5: New x86_64 ABI passes the arguments in reverse order.
author | David Nadlinger <code@klickverbot.at> |
---|---|
date | Sat, 23 Apr 2011 22:57:32 +0200 |
parents | afe5f4bc8f9c |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ <pop.atry@gmail.com> // @date@ 2007-10-07 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=1595 // @desc@ [Issue 1595] Multiple typedefs of Exception should be treated as different types. module dstress.run.c.catch_08_D; class Base{ } typedef Base Cat; typedef Base Dog; int main(){ try{ throw new Cat(); }catch(Dog d){ assert(0); }catch(Cat c){ return 0; } assert(0); }