view compile/a/array_initialization_33_B.d @ 1452:a3141f24cfac

[Issue 1072] this code should run as the same as previous bug code , but dmd av here david <davidl@126.com> 2007-03-20 http://d.puremagic.com/issues/show_bug.cgi?id=1072
author thomask
date Wed, 04 Apr 2007 20:34:23 +0000
parents
children
line wrap: on
line source

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

// @author@	david <davidl@126.com>
// @date@	2007-03-20
// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=1072
// @desc@	[Issue 1072] this code should run as the same as previous bug code , but dmd av here

module dstress.compile.a.array_initialization_33_B;

char[] hello(){
	char[] result="";
	foreach(c; ""){
		result ~= `abc`;
	}
	return result;
}

static assert("" == hello());