view run/const_16.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 ec6d35cccfb5
children b8c0195059d9
line wrap: on
line source

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

// @author@	Stewart Gordon <smjg_1998@yahoo.com>
// @date@	2005-03-21
// @uri@	news:d1mc4q$2peg$3@digitaldaemon.com

module dstress.run.const_16;

struct StructA{ 
	int a;
}

const int i = 15;

const StructA s1 = { i+1 };
const StructA s2 = s1;

int main(){
	assert(s1.a == 16);
	assert(s2.a == 16);
	return 0;
}