annotate run/s/struct_initialization_07.d @ 1489:b8c0195059d9

changed nntp: URLs to http: URLs
author thomask
date Mon, 09 Apr 2007 13:47:01 +0000
parents 2384a355aef0
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
548
72745b846f1e struct initialization
thomask
parents:
diff changeset
1 // $HeadURL$
72745b846f1e struct initialization
thomask
parents:
diff changeset
2 // $Date$
72745b846f1e struct initialization
thomask
parents:
diff changeset
3 // $Author$
72745b846f1e struct initialization
thomask
parents:
diff changeset
4
72745b846f1e struct initialization
thomask
parents:
diff changeset
5 // @author@ Ben Hinkle <ben.hinkle@gmail.com>
72745b846f1e struct initialization
thomask
parents:
diff changeset
6 // @date@ 2005-05-20
1489
b8c0195059d9 changed nntp: URLs to http: URLs
thomask
parents: 551
diff changeset
7 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=4080
548
72745b846f1e struct initialization
thomask
parents:
diff changeset
8
72745b846f1e struct initialization
thomask
parents:
diff changeset
9 module dstress.run.s.struct_initialization_07;
72745b846f1e struct initialization
thomask
parents:
diff changeset
10
72745b846f1e struct initialization
thomask
parents:
diff changeset
11 struct Node {
72745b846f1e struct initialization
thomask
parents:
diff changeset
12 Node* left,right,parent;
72745b846f1e struct initialization
thomask
parents:
diff changeset
13 int color;
72745b846f1e struct initialization
thomask
parents:
diff changeset
14 char[] key;
72745b846f1e struct initialization
thomask
parents:
diff changeset
15 char[] value;
72745b846f1e struct initialization
thomask
parents:
diff changeset
16 }
72745b846f1e struct initialization
thomask
parents:
diff changeset
17
72745b846f1e struct initialization
thomask
parents:
diff changeset
18 int main(){
72745b846f1e struct initialization
thomask
parents:
diff changeset
19 Node* x = new Node;
72745b846f1e struct initialization
thomask
parents:
diff changeset
20 assert(x.left is null);
72745b846f1e struct initialization
thomask
parents:
diff changeset
21 assert(x.right is null);
72745b846f1e struct initialization
thomask
parents:
diff changeset
22 assert(x.parent is null);
72745b846f1e struct initialization
thomask
parents:
diff changeset
23 assert(x.key.length == 0);
72745b846f1e struct initialization
thomask
parents:
diff changeset
24 assert(x.value.length == 0);
72745b846f1e struct initialization
thomask
parents:
diff changeset
25 return 0;
72745b846f1e struct initialization
thomask
parents:
diff changeset
26 }