changeset 901:b0dd3e91e54b

Unknown W. Brackets <unknown@simplemachines.org> 2006-03-04 news:dud1s0$icq$1@digitaldaemon.com
author thomask
date Thu, 09 Mar 2006 21:50:32 +0000
parents c87fab2c0689
children 58966fea59f7
files undefined/float_literal_01_A.d undefined/float_literal_01_B.d undefined/float_literal_01_C.d undefined/float_literal_01_D.d
diffstat 4 files changed, 80 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/undefined/float_literal_01_A.d	Thu Mar 09 21:50:32 2006 +0000
@@ -0,0 +1,21 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Unknown W. Brackets <unknown@simplemachines.org>
+// @date@	2006-03-04
+// @uri@	news:dud1s0$icq$1@digitaldaemon.com
+
+module dstress.undefined.float_literal_01_A;
+
+int _1;
+
+void main(){
+	static if(is(typeof(._1) == int)){
+		pragma(msg, "module.html (Module Scope Operator)");
+	}
+	
+	static if(is(typeof(._1) == double)){
+		pragma(msg, "lex.html#floatliteral");
+	}
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/undefined/float_literal_01_B.d	Thu Mar 09 21:50:32 2006 +0000
@@ -0,0 +1,21 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Unknown W. Brackets <unknown@simplemachines.org>
+// @date@	2006-03-04
+// @uri@	news:dud1s0$icq$1@digitaldaemon.com
+
+module dstress.undefined.float_literal_01_B;
+
+int _;
+
+void main(){
+	static if(is(typeof(._) == int)){
+		pragma(msg, "module.html (Module Scope Operator)");
+	}
+	
+	static if(is(typeof(._) == double)){
+		pragma(msg, "lex.html#floatliteral");
+	}
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/undefined/float_literal_01_C.d	Thu Mar 09 21:50:32 2006 +0000
@@ -0,0 +1,19 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Unknown W. Brackets <unknown@simplemachines.org>
+// @date@	2006-03-04
+// @uri@	news:dud1s0$icq$1@digitaldaemon.com
+
+module dstress.undefined.float_literal_01_C;
+
+int _;
+
+void main(){
+	static if(is(typeof(_.) == double)){
+		pragma(msg, "lex.html#floatliteral");
+	}else{
+		pragma(msg, "should fail to compile");
+	}
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/undefined/float_literal_01_D.d	Thu Mar 09 21:50:32 2006 +0000
@@ -0,0 +1,19 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Unknown W. Brackets <unknown@simplemachines.org>
+// @date@	2006-03-04
+// @uri@	news:dud1s0$icq$1@digitaldaemon.com
+
+module dstress.undefined.float_literal_01_D;
+
+int _1;
+
+void main(){
+	static if(is(typeof(_1.) == double)){
+		pragma(msg, "lex.html#floatliteral");
+	}else{
+		pragma(msg, "should fail to compile");
+	}
+}