Mercurial > projects > ldc
annotate test/structinit.d @ 16:860524276608 trunk
[svn r20] * Added a simple compiletime std.stdio by downs
* Added a simple lphobos of std.stdio (so far)
* 'tester.sh run' now links to lphobos
author | lindquist |
---|---|
date | Wed, 03 Oct 2007 05:41:15 +0200 |
parents | c53b6e3fe49a |
children | 27b2f40bdb58 |
rev | line source |
---|---|
1 | 1 module structinit; |
2 | |
3 import structinit2; | |
4 | |
5 struct S | |
6 { | |
7 uint ui; | |
8 float f; | |
9 long l; | |
10 real r; | |
11 } | |
12 | |
13 S adef; | |
14 | |
15 S a = { 1, 2.0f }; | |
16 S b = { f:2.0f, l:42 }; | |
17 | |
18 Imp imp; | |
19 | |
20 void main() | |
21 { | |
22 //assert(a == S.init); | |
23 //assert(b == S(0,3.14f,0,real.init)); | |
24 } |