mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-12 10:53:14 +01:00
27 lines
246 B
D
27 lines
246 B
D
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);}
|
|
}
|