Mercurial > projects > dstress
view run/f/foreach_31_C.d @ 1577:45e89f20882a
[Issue 1400] New: static array in struct as parameter BROKEN
<default_357-line@yahoo.de>
2007-08-04
http://d.puremagic.com/issues/show_bug.cgi?id=1400
author | thomask |
---|---|
date | Thu, 21 Feb 2008 15:20:29 +0000 |
parents | f7434744e991 |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ module dstress.run.f.foreach_31_C; int main(){ int[] index; char[] value; foreach(int i, char c; "_\U00012345-"w){ index ~= i; value ~= c; } assert(value.length == 6); assert(value[0] == '_'); assert(value[1] == 0xF0); assert(value[2] == 0x92); assert(value[3] == 0x8D); assert(value[4] == 0x85); assert(value[5] == '-'); assert(index.length == 6); assert(index[0] == 0); assert(index[1] == 1); assert(index[2] == 1); assert(index[3] == 1); assert(index[4] == 1); assert(index[5] == 3); return 0; }