Mercurial > projects > dstress
view complex/error_message/error_message_01_C.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 | fb70ca0d80ba |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ Don Clugston <dac@nospam.com.au> // @date@ 2005-11-24 // @uri@ news:dm3rs0$2qit$1@digitaldaemon.com module dstress.complex.error_message.error_message_01_C; template a() { const real val= 0x1p9; } template half(alias f) { const real val = f.val/2; } template c(alias f) { static if (f.val > 2.0) const int val = c!( half!(f) ).val; } const int m = c!(a!()).val;