changeset 757:47dfb8eab266

Thomas Kuehne <thomas-dloop@kuehne.THISISSPAM.cn> 2005-12-03 news:1nd963-jgj.ln1@birke.kuehne.cn
author thomask
date Sat, 03 Dec 2005 22:22:28 +0000
parents 9a121126b077
children a5714ec82ba6
files run/c/cast_30_A.d run/c/cast_30_B.d run/c/cast_30_C.d run/c/cast_30_D.d run/c/cast_30_E.d run/c/cast_30_F.d
diffstat 6 files changed, 116 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/c/cast_30_A.d	Sat Dec 03 22:22:28 2005 +0000
@@ -0,0 +1,20 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Thomas Kuehne <thomas-dloop@kuehne.THISISSPAM.cn>
+// @date@	2005-12-03
+// @uri@	news:1nd963-jgj.ln1@birke.kuehne.cn
+
+module dstress.run.c.cast_30_A;
+
+typedef cdouble X;
+
+int main(){
+	X four = cast(X) (4.0i + 0.4);
+	
+	assert(four.im == 4.0);
+	assert(four.re == 0.4);
+
+	return 0;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/c/cast_30_B.d	Sat Dec 03 22:22:28 2005 +0000
@@ -0,0 +1,20 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Thomas Kuehne <thomas-dloop@kuehne.THISISSPAM.cn>
+// @date@	2005-12-03
+// @uri@	news:1nd963-jgj.ln1@birke.kuehne.cn
+
+module dstress.run.c.cast_30_B;
+
+alias cdouble X;
+
+int main(){
+	X four = cast(X) (4.0i + 0.4);
+	
+	assert(four.im == 4.0);
+	assert(four.re == 0.4);
+
+	return 0;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/c/cast_30_C.d	Sat Dec 03 22:22:28 2005 +0000
@@ -0,0 +1,19 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Thomas Kuehne <thomas-dloop@kuehne.THISISSPAM.cn>
+// @date@	2005-12-03
+// @uri@	news:1nd963-jgj.ln1@birke.kuehne.cn
+
+module dstress.run.c.cast_30_C;
+
+typedef idouble X;
+
+int main(){
+	X four = cast(X) 4.0i;
+	
+	assert(four.im == 4.0);
+
+	return 0;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/c/cast_30_D.d	Sat Dec 03 22:22:28 2005 +0000
@@ -0,0 +1,19 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Thomas Kuehne <thomas-dloop@kuehne.THISISSPAM.cn>
+// @date@	2005-12-03
+// @uri@	news:1nd963-jgj.ln1@birke.kuehne.cn
+
+module dstress.run.c.cast_30_D;
+
+alias idouble X;
+
+int main(){
+	X four = cast(X) 4.0i;
+	
+	assert(four.im == 4.0);
+
+	return 0;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/c/cast_30_E.d	Sat Dec 03 22:22:28 2005 +0000
@@ -0,0 +1,19 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Thomas Kuehne <thomas-dloop@kuehne.THISISSPAM.cn>
+// @date@	2005-12-03
+// @uri@	news:1nd963-jgj.ln1@birke.kuehne.cn
+
+module dstress.run.c.cast_30_E;
+
+typedef double X;
+
+int main(){
+	X four = cast(X) 4.0;
+	
+	assert(cast(double)four == 4.0);
+
+	return 0;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/c/cast_30_F.d	Sat Dec 03 22:22:28 2005 +0000
@@ -0,0 +1,19 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Thomas Kuehne <thomas-dloop@kuehne.THISISSPAM.cn>
+// @date@	2005-12-03
+// @uri@	news:1nd963-jgj.ln1@birke.kuehne.cn
+
+module dstress.run.c.cast_30_F;
+
+alias double X;
+
+int main(){
+	X four = cast(X) 4.0;
+	
+	assert(cast(double)four == 4.0);
+
+	return 0;
+}