Mercurial > projects > ldc
view test/structs4.d @ 39:fd5e8bbfcb25 trunk
[svn r43] Fixed the rebuild profile to be able to build sdldemo1.
author | lindquist |
---|---|
date | Wed, 10 Oct 2007 06:21:31 +0200 |
parents | 25bb577878e8 |
children | b706170e24a9 |
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);} }