Mercurial > projects > dstress
view run/t/template_32_F.d @ 1593:a2c2122f2f66
Remove error line information for simple tests that may legitimately have
another line referenced in the error message.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Thu, 28 Aug 2008 17:30:16 +0200 |
parents | 902d2c168029 |
children |
line wrap: on
line source
// $HeadUR$ // $Date$ // $Author$ // @author@ Dave <Dave_member@pathlink.com> // @date@ 2006-03-18 // @uri@ news:dvgq34$22hv$1@digitaldaemon.com // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=487 module dstress.run.t.template_32_F; template sum(double x){ static if (x <= 1.0){ const double sum = x; }else{ const double sum = x + sum!(x - 1.0); } } int main(){ double x = sum!(3.0); if(x != 6.0){ assert(0); } return 0; }