view run/const_21_A.d @ 756:9a121126b077

major "Torture" review
author thomask
date Sat, 03 Dec 2005 22:19:07 +0000
parents ef1faa3f2bf7
children b8c0195059d9
line wrap: on
line source

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

// @author@	zwang <nehzgnaw@gmail.com>
// @date@	2005-05-05
// @uri@	news:d5cj56$mfp$1@digitaldaemon.com

module dstress.run.const_21_A;

int main(){
	const double d = -3.0;
	int i = cast(int)d;
	assert(-3 == i);
	return 0;
}