diff run/creal_08.d @ 95:f4dcf89f7796

extended creal tests
author thomask
date Wed, 03 Nov 2004 08:17:17 +0000
parents
children f87ba6507260
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/creal_08.d	Wed Nov 03 08:17:17 2004 +0000
@@ -0,0 +1,11 @@
+module dstress.run.creal_06;
+
+int main(){
+	float re= 1/3;
+	float im= 1/5;
+	ireal i=1.0i;
+	creal c= re+i*im;
+	assert(c.im == im);
+	assert(c.im.sizeof == (real).sizeof);
+	return 0;
+}