changeset 551:2384a355aef0

Ben Hinkle <ben.hinkle@gmail.com> 2005-05-20 news:d6j9fq$2qdd$1@digitaldaemon.com
author thomask
date Fri, 20 May 2005 10:08:23 +0000
parents e7330e57895f
children a9a4ec32f7a0
files run/s/struct_initialization_07.d run/s/struct_initialization_07_B.d
diffstat 2 files changed, 26 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/run/s/struct_initialization_07.d	Fri May 20 10:03:57 2005 +0000
+++ b/run/s/struct_initialization_07.d	Fri May 20 10:08:23 2005 +0000
@@ -4,7 +4,7 @@
 
 // @author@	Ben Hinkle <ben.hinkle@gmail.com>
 // @date@	2005-05-20
-// @uri@	<d6j9fq$2qdd$1@digitaldaemon.com>
+// @uri@	news:d6j9fq$2qdd$1@digitaldaemon.com
 
 module dstress.run.s.struct_initialization_07;
 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/s/struct_initialization_07_B.d	Fri May 20 10:08:23 2005 +0000
@@ -0,0 +1,25 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Ben Hinkle <ben.hinkle@gmail.com>
+// @date@	2005-05-20
+// @uri@	news:d6j9fq$2qdd$1@digitaldaemon.com
+
+module dstress.run.s.struct_initialization_07_B;
+
+struct Node {
+	Node* left,right,parent;
+	int key;
+	int value;
+}
+
+int main(){
+	Node* x = new Node;
+	assert(x.left is null);
+	assert(x.right is null);
+	assert(x.parent is null);
+	assert(x.key == 0);
+	assert(x.value == 0);
+	return 0;
+}