view run/f/foreach_34_A.d @ 1319:81222734adf3

sed'ed replacement of new:...http.d.puremagic.co... with http://d.puremagic.com/issues/show_bug.cgi?...
author thomask
date Sun, 31 Dec 2006 19:58:06 +0000
parents 9dcac8d4e97f
children
line wrap: on
line source

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

// @author@	oskar.linde@gmail.com
// @date@	2006-03-08
// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=25

module dstress.run.f.foreach_34_A;

template crash(T){
	int crash(T t){
		int sum;
		foreach(char u; t){
			sum += u;
		}

		return sum;
	}
}

int main(){
	if(crash!(char[])("Ab-") != 'A' + 'b' + '-'){
		assert(0);
	}
	return 0;
}