# HG changeset patch # User thomask # Date 1116583703 0 # Node ID 2384a355aef0c137415ec62b2f4fc96967508be8 # Parent e7330e57895f21df8db422e98da7bd548166ae7b Ben Hinkle 2005-05-20 news:d6j9fq$2qdd$1@digitaldaemon.com diff -r e7330e57895f -r 2384a355aef0 run/s/struct_initialization_07.d --- 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 // @date@ 2005-05-20 -// @uri@ +// @uri@ news:d6j9fq$2qdd$1@digitaldaemon.com module dstress.run.s.struct_initialization_07; diff -r e7330e57895f -r 2384a355aef0 run/s/struct_initialization_07_B.d --- /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 +// @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; +}