Mercurial > projects > dstress
view run/foreach_16.d @ 4:1ed6616fe905
extended array tests
author | thomask |
---|---|
date | Sun, 26 Sep 2004 15:54:31 +0000 |
parents | |
children | 5f98d4a33d49 |
line wrap: on
line source
int main(){ char[] string; string.length=4; string[0] = 0xF0; string[1] = 0x9D; string[2] = 0x83; string[3] = 0x93; int count=0; wchar tmp; foreach(wchar value ; string){ tmp=value; count++; } assert(count==1); assert(tmp==0x01D0D3); return 0; }