Mercurial > projects > dstress
diff complex/assert_21/a.d @ 1526:6caf8b7e726a
[Issue 1121] Assertion codegen issue with templated function
Jarrett Billingsley <jarrett.billingsley@gmail.com>
2007-04-10
http://d.puremagic.com/issues/show_bug.cgi?id=1121
author | thomask |
---|---|
date | Fri, 27 Apr 2007 17:30:54 +0000 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/complex/assert_21/a.d Fri Apr 27 17:30:54 2007 +0000 @@ -0,0 +1,24 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Jarrett Billingsley <jarrett.billingsley@gmail.com> +// @date@ 2007-04-10 +// @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=1121 +// @desc@ [Issue 1121] Assertion codegen issue with templated function + +import b; + +int main(){ + try{ + foo(); + func!(void)(); + }catch(Exception e){ + if("AssertError Failure b.d(13) GO" == e.toString()){ + return 0; + } + } + + assert(0); +} +