view run/const_20_D.d @ 510:ef1faa3f2bf7

const float conversions zwang <nehzgnaw@gmail.com> 2005-05-05 news:d5cj56$mfp$1@digitaldaemon.com
author thomask
date Tue, 10 May 2005 23:48:58 +0000
parents
children 9a121126b077
line wrap: on
line source

// $HeadURL: http://dstress.kuehne.cn/run/const_20_D.d $
// $Date: 2005-05-06 11:25:58 +0200 (Fr, 06 Mai 2005) $
// $Author: thomask $

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

module dstress.run.const_20_D;

int main(){
	float d = 3.0f;
	int i = cast(int)d;
	assert(3 == i);
	return 0;
}