Mercurial > projects > ldc
view test/structs4.d @ 158:287540c5f05e trunk
[svn r174] added file missing from previous commit [173]
author | ChristianK |
---|---|
date | Thu, 01 May 2008 13:33:02 +0200 |
parents | b706170e24a9 |
children |
line wrap: on
line source
module structs4; struct S{ int a; T t; } struct T{ int b; U u; } struct U{ int c; } void main() { S s; s.a = 3; s.t = T.init; s.t.b = 4; s.t.u = U.init; s.t.u.c = 5; //{assert(s.t.u.c == 5);} }