mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-12 19:03:13 +01:00
26 lines
255 B
D
26 lines
255 B
D
module structinit;
|
|
|
|
import structinit2;
|
|
|
|
struct S
|
|
{
|
|
uint ui;
|
|
float f;
|
|
long l;
|
|
real r;
|
|
}
|
|
|
|
S adef;
|
|
|
|
S a = { 1, 2.0f };
|
|
S b = { f:2.0f, l:42 };
|
|
|
|
Imp imp;
|
|
|
|
void main()
|
|
{
|
|
//assert(a == S.init);
|
|
//assert(b == S(0,3.14f,0,real.init));
|
|
}
|
|
|