diff run/const_20_B.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 diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/const_20_B.d	Tue May 10 23:48:58 2005 +0000
@@ -0,0 +1,17 @@
+// $HeadURL: http://dstress.kuehne.cn/run/const_20_B.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_B;
+
+int main(){
+	float d = -3.0f;
+	int i = cast(int)d;
+	assert(-3 == i);
+	return 0;
+}
+