Mercurial > projects > dstress
view run/f/foreach_33_E.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 | 9dcac8d4e97f |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ module dstess.run.f.foreach_33_E; int main(){ int sum = 0; int sumI = 0; char[] data = "\u0001\u0010\u0030\u0000"; foreach(i,char c; data){ sumI += i; sum += c; } if(sum != 0x41){ assert(0); } if(sumI != 6){ assert(0); } return 0; }