changeset 895:12e8457fbb03

Ant <duitoolkit@yahoo.ca> 2006-03-06 news:duiilb$2heo$1@digitaldaemon.com
author thomask
date Tue, 07 Mar 2006 10:22:28 +0000
parents bc535ba67c39
children 6f89cf0d83c7
files run/s/struct_24_A.d run/s/struct_24_B.d run/s/struct_24_C.d run/s/struct_24_D.d
diffstat 4 files changed, 82 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/s/struct_24_A.d	Tue Mar 07 10:22:28 2006 +0000
@@ -0,0 +1,21 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Ant <duitoolkit@yahoo.ca>
+// @date@	2006-03-06
+// @uri@	news:duiilb$2heo$1@digitaldaemon.com
+
+module dstess.run.s.struct_24_A;
+
+struct S{
+}
+
+int main(char[][] args){
+	S s;
+
+	// don't trip the "no effect" filter:
+	size_t* x = cast(size_t*)cast(void*)(&s);
+
+	return *x * (args.length - 1);
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/s/struct_24_B.d	Tue Mar 07 10:22:28 2006 +0000
@@ -0,0 +1,20 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Ant <duitoolkit@yahoo.ca>
+// @date@	2006-03-06
+// @uri@	news:duiilb$2heo$1@digitaldaemon.com
+
+module dstess.run.s.struct_24_B;
+
+struct S;
+
+int main(char[][] args){
+	S s;
+
+	// don't trip the "no effect" filter:
+	size_t* x = cast(size_t*)cast(void*)(&s);
+
+	return *x * (args.length - 1);
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/s/struct_24_C.d	Tue Mar 07 10:22:28 2006 +0000
@@ -0,0 +1,20 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Ant <duitoolkit@yahoo.ca>
+// @date@	2006-03-06
+// @uri@	news:duiilb$2heo$1@digitaldaemon.com
+
+module dstess.run.s.struct_24_C;
+
+struct S;
+
+int main(char[][] args){
+	S* s = new S;
+
+	// don't trip the "no effect" filter:
+	size_t* x = cast(size_t*)s;
+
+	return *x * (args.length - 1);
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/s/struct_24_D.d	Tue Mar 07 10:22:28 2006 +0000
@@ -0,0 +1,21 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Ant <duitoolkit@yahoo.ca>
+// @date@	2006-03-06
+// @uri@	news:duiilb$2heo$1@digitaldaemon.com
+
+module dstess.run.s.struct_24_D;
+
+struct S{
+}
+
+int main(char[][] args){
+	S* s = new S;
+
+	// don't trip the "no effect" filter:
+	size_t* x = cast(size_t*)s;
+
+	return *x * (args.length - 1);
+}