Mercurial > projects > dstress
view run/f/foreach_31_B.d @ 1576:b3e16c86558e
[Issue 1398] New: GDC doesn't generate correct code
<mariusmuja@gmail.com>
2007-08-04
http://d.puremagic.com/issues/show_bug.cgi?id=1398
author | thomask |
---|---|
date | Thu, 21 Feb 2008 15:20:08 +0000 |
parents | f7434744e991 |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ module dstress.run.f.foreach_31_B; int main(){ int[] index; char[] value; foreach(int i, char c; "_\U00012345-"d){ 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] == 2); return 0; }