Mercurial > projects > dstress
view run/t/template_58_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 | c41d70e10b6f |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ Don Clugston <clugdbug@yahoo.com.au> // @date@ 2007-02-02 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=993 // @desc@ [Issue 993] No constant folding for template value default arguments module dstress.run.t.template_58_D; int a(int b = 7 * 2)(){ return b + 1; } int main() { if(15 != a()){ assert(0); } return 0; }