changeset 723:9a2158064fdd

auto type
author thomask
date Fri, 28 Oct 2005 21:32:49 +0000
parents 283709990093
children 5c568eb016c0
files run/a/auto_10_A.d run/a/auto_10_B.d run/c/const_25_A.d run/c/const_25_B.d run/d/deprecated_21_A.d run/d/deprecated_21_B.d run/s/static_33_A.d run/s/static_33_B.d
diffstat 8 files changed, 112 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/a/auto_10_A.d	Fri Oct 28 21:32:49 2005 +0000
@@ -0,0 +1,13 @@
+// $HeadURL: svn://dstress.kuehne.cn/run/c/creal_26_B.d $
+// $Date: 2005-06-01 15:02:35 +0200 (Wed, 01 Jun 2005) $
+// $Author: thomask $
+
+module dstress.run.c.auto_10_A;
+
+int main(){
+	auto x = 4.0;
+	
+	assert(typeid(typeof(x)).toString() == "double");
+	
+	return 0;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/a/auto_10_B.d	Fri Oct 28 21:32:49 2005 +0000
@@ -0,0 +1,13 @@
+// $HeadURL: svn://dstress.kuehne.cn/run/c/creal_26_B.d $
+// $Date: 2005-06-01 15:02:35 +0200 (Wed, 01 Jun 2005) $
+// $Author: thomask $
+
+module dstress.run.c.auto_10_B;
+
+int main(){
+	auto x = 4;
+	
+	assert(typeid(typeof(x)).toString() == "int");
+	
+	return 0;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/c/const_25_A.d	Fri Oct 28 21:32:49 2005 +0000
@@ -0,0 +1,15 @@
+// $HeadURL: svn://dstress.kuehne.cn/run/c/creal_26_B.d $
+// $Date: 2005-06-01 15:02:35 +0200 (Wed, 01 Jun 2005) $
+// $Author: thomask $
+
+module dstress.run.c.const_25_A;
+
+class C{
+	const x = 4.0;
+}
+
+int main(){
+	assert(typeid(typeof(C.x)).toString() == "double");
+	
+	return 0;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/c/const_25_B.d	Fri Oct 28 21:32:49 2005 +0000
@@ -0,0 +1,15 @@
+// $HeadURL: svn://dstress.kuehne.cn/run/c/creal_26_B.d $
+// $Date: 2005-06-01 15:02:35 +0200 (Wed, 01 Jun 2005) $
+// $Author: thomask $
+
+module dstress.run.c.const_25_B;
+
+class C{
+	const x = 4;
+}
+
+int main(){
+	assert(typeid(typeof(C.x)).toString() == "int");
+	
+	return 0;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/d/deprecated_21_A.d	Fri Oct 28 21:32:49 2005 +0000
@@ -0,0 +1,15 @@
+// $HeadURL: svn://dstress.kuehne.cn/run/c/creal_26_B.d $
+// $Date: 2005-06-01 15:02:35 +0200 (Wed, 01 Jun 2005) $
+// $Author: thomask $
+
+// __DSTRESS_DFLAGS__ -d
+
+module dstress.run.d.deprecated_21_A;
+
+deprecated x = 4.0;
+
+int main(){
+	assert(typeid(typeof(x)).toString() == "double");
+	
+	return 0;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/d/deprecated_21_B.d	Fri Oct 28 21:32:49 2005 +0000
@@ -0,0 +1,15 @@
+// $HeadURL: svn://dstress.kuehne.cn/run/c/creal_26_B.d $
+// $Date: 2005-06-01 15:02:35 +0200 (Wed, 01 Jun 2005) $
+// $Author: thomask $
+
+// __DSTRESS_DFLAGS__ -d
+
+module dstress.run.d.deprecated_21_B;
+
+deprecated x = 4;
+
+int main(){
+	assert(typeid(typeof(x)).toString() == "int");
+	
+	return 0;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/s/static_33_A.d	Fri Oct 28 21:32:49 2005 +0000
@@ -0,0 +1,13 @@
+// $HeadURL: svn://dstress.kuehne.cn/run/c/creal_26_B.d $
+// $Date: 2005-06-01 15:02:35 +0200 (Wed, 01 Jun 2005) $
+// $Author: thomask $
+
+module dstress.run.s.static_33_A;
+
+deprecated x = 4.0;
+
+int main(){
+	assert(typeid(typeof(x)).toString() == "double");
+	
+	return 0;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/s/static_33_B.d	Fri Oct 28 21:32:49 2005 +0000
@@ -0,0 +1,13 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+module dstress.run.s.static_33_B;
+
+deprecated x = 4;
+
+int main(){
+	assert(typeid(typeof(x)).toString() == "int");
+	
+	return 0;
+}