view run/foreach_12.d @ 1516:4576b42ef546

updated to DMD-1.013
author thomask
date Fri, 27 Apr 2007 17:21:10 +0000
parents f87ba6507260
children
line wrap: on
line source

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

module dstress.run.foreach_12;

int main(){
	char[] array="abc";
	int count=0;
	assert(count==0);
	foreach(char value; array){
		count++;
		if(value=='b'){
			break;
		}
	}
	assert(count==2);
	return 0;
}