# HG changeset patch # User thomask # Date 1116581779 0 # Node ID 72745b846f1ed8d831e41d8e3634ab48a6d02b09 # Parent e482f375f716d4344f351ea2884041a73f12daae struct initialization Ben Hinkle 2005-05-20 diff -r e482f375f716 -r 72745b846f1e run/s/struct_initialization_07.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/s/struct_initialization_07.d Fri May 20 09:36:19 2005 +0000 @@ -0,0 +1,26 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Ben Hinkle +// @date@ 2005-05-20 +// @uri@ + +module dstress.run.s.struct_initialization_07; + +struct Node { + Node* left,right,parent; + int color; + char[] key; + char[] 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.length == 0); + assert(x.value.length == 0); + return 0; +}