Files
ldc/test/structinit2.d
Tomas Lindquist Olsen 6e85d0f89e [svn r16] * Updated all tests to have a main
* Updated runalltests to both compile and run the tests
2007-10-02 05:27:44 +02:00

17 lines
172 B
D

module structinit2;
struct Imp
{
int i;
long l;
float f;
}
void main()
{
Imp i;
assert(i.i == 0);
assert(i.l == 0L);
assert(i.f !<>= 0.0f);
}