view run/c/const_27_D.d @ 1090:f4e98d870b57

pre DMD-0.163 review
author thomask
date Thu, 20 Jul 2006 14:47:29 +0000
parents a14f98c3ae83
children b8c0195059d9
line wrap: on
line source

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

// @author@	BCS <BCS_member@pathlink.com>
// @date@	2005-11-08
// @uri@	news:dkpc3m$1d71$1@digitaldaemon.com

module dstress.run.c.const_27_D;

class C{
	const c = b * 3;
	const b = a * 2;
	const int a = 1;
}

int main(){
	if(C.a != 1){
		assert(0);
	}
	if(C.b != 2){
		assert(0);
	}
	if(C.c != 6){
		assert(0);
	}

	return 0;
}