view run/bug_cod1_1648_A.d @ 1330:f3f715978184

Georg Wrede <georg@iki.fi> 2007-01-07 mail:45A120F5.1050108@iki.fi
author thomask
date Sat, 13 Jan 2007 10:33:49 +0000
parents f1c605ebb825
children b8c0195059d9
line wrap: on
line source

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

// @author@	Tom S <h3r3tic@remove.mat.uni.torun.pl>
// @date@	2005-03-27
// @uri@	news:d26le9$2hsa$1@digitaldaemon.com

module dstress.run.bug_cod1_1648_A;

struct MyStruct{
	static MyStruct bar(){
		MyStruct s;
		return s;
	}
}

int main(){
	MyStruct[] array;  // or any other size, can be dynamically alloc'd
	array.length=2;
	array[] = MyStruct.bar;
	return 0;
}