mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-16 21:03:14 +01:00
[svn r5] Initial commit. Most things are very rough.
This commit is contained in:
24
test/structinit.d
Normal file
24
test/structinit.d
Normal file
@@ -0,0 +1,24 @@
|
||||
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));
|
||||
}
|
||||
Reference in New Issue
Block a user