changeset 323:c8c5c7a82c94

array - int h3r3tic 2005-03-18 news:d1d4lc$25e2$1@digitaldaemon.com
author thomask
date Fri, 18 Mar 2005 05:29:08 +0000
parents 0c38b6a3aab2
children 64e9ef1efd41
files nocompile/cast_23.d nocompile/cast_24.d
diffstat 2 files changed, 36 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nocompile/cast_23.d	Fri Mar 18 05:29:08 2005 +0000
@@ -0,0 +1,18 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	h3r3tic
+// @date@	2005-03-18
+// @uri@	news:d1d4lc$25e2$1@digitaldaemon.com
+
+// __DSTRESS_ERROR__ 16
+
+module dstress.nocompile.cast_23;
+
+int main(){
+	int[10] arr;
+	int *p = &arr[5];
+	cast(uint)(p - arr);
+	return 0;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nocompile/cast_24.d	Fri Mar 18 05:29:08 2005 +0000
@@ -0,0 +1,18 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	h3r3tic
+// @date@	2005-03-18
+// @uri@	news:d1d4lc$25e2$1@digitaldaemon.com
+
+// __DSTRESS_ERROR__ 16
+
+module dstress.nocompile.cast_24;
+
+int main(){
+	int[10] arr;
+	int *p = &arr[5];
+	p - arr;
+	return 0;
+}