diff compile/a/array_initialization_33_A.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 diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/compile/a/array_initialization_33_A.d	Wed Apr 04 20:34:23 2007 +0000
@@ -0,0 +1,20 @@
+// $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_A;
+
+char[] hello(){
+	char[] result="";
+	for(;;){
+		result ~= `abc`;
+	}
+	return result;
+}
+
+static assert("" == hello());