view run/foreach_16.d @ 390:0b6abb63f92d

fixed wchar->dchar Walter <walter@digitalmars.com> 2005-04-06 mail:001701c53ace$7e91de50$0200a8c0@colossus
author thomask
date Wed, 06 Apr 2005 18:25:21 +0000
parents f87ba6507260
children 36bedfa079e6
line wrap: on
line source

// $HeadURL$
// $Date$
// $Author$

module dstress.run.foreach_16;

int main(){
	char[] string = x"F0 9D 83 93"; // utf-8 for U+1D0D3

	int count=0;
	dchar tmp;
	foreach(dchar value ; string){
		tmp=value;
		count++;
	}
	assert(count==1);
	assert(tmp==0x01D0D3);

	return 0;
}