view run/bug_cgcod_1489_A.d @ 478:78025fa64bdf

cgcod.c 1489 Kevin Bealer <Kevin_member@pathlink.com> 2005-04-24 news:d4fgcc$6ob$1@digitaldaemon.com
author thomask
date Mon, 25 Apr 2005 05:25:13 +0000
parents
children b8c0195059d9
line wrap: on
line source

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

// @author@	Kevin Bealer <Kevin_member@pathlink.com>
// @date@	2005-04-24
// @uri@	news:d4fgcc$6ob$1@digitaldaemon.com

module dstress.run.bug_cgcod_1489_A;

struct S {
	int a, b, c;
}
    
S[] x;
        
S bug(S s){
	x.length = 9;
	return x[0] = s;
}

int main(){
	S var;
	var.a=2;

	assert(var==bug(var));

	return 0;
}