Mercurial > projects > dstress
view run/f/foreach_33_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 | a929acac9127 |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ module dstess.run.f.foreach_33_C; int main(){ int sum = 0; char[] data = "\u0001\u0010\u0030"; creal c = 1.0L + 2.0Li; foreach(x; data){ static assert(typeid(typeof(x)) == typeid(char)); sum += x; } if(sum != 0x41){ assert(0); } return 0; }