annotate tests/mini/structs5.d @ 1651:cb960b882ca3 default tip

bindings were moved to dsource.org/projects/bindings/
author Moritz Warning <moritzwarning@web.de>
date Thu, 20 May 2010 20:05:03 +0200
parents 1bb99290e03a
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
25
12fd8ce55d9c [svn r29] * Fixed structs inside struct literals
lindquist
parents:
diff changeset
1 module structs5;
12fd8ce55d9c [svn r29] * Fixed structs inside struct literals
lindquist
parents:
diff changeset
2
12fd8ce55d9c [svn r29] * Fixed structs inside struct literals
lindquist
parents:
diff changeset
3 void main()
12fd8ce55d9c [svn r29] * Fixed structs inside struct literals
lindquist
parents:
diff changeset
4 {
12fd8ce55d9c [svn r29] * Fixed structs inside struct literals
lindquist
parents:
diff changeset
5 {S s = S();}
12fd8ce55d9c [svn r29] * Fixed structs inside struct literals
lindquist
parents:
diff changeset
6 {T t = T(1);}
12fd8ce55d9c [svn r29] * Fixed structs inside struct literals
lindquist
parents:
diff changeset
7 {U u = U();}
12fd8ce55d9c [svn r29] * Fixed structs inside struct literals
lindquist
parents:
diff changeset
8 }
12fd8ce55d9c [svn r29] * Fixed structs inside struct literals
lindquist
parents:
diff changeset
9
12fd8ce55d9c [svn r29] * Fixed structs inside struct literals
lindquist
parents:
diff changeset
10 struct S
12fd8ce55d9c [svn r29] * Fixed structs inside struct literals
lindquist
parents:
diff changeset
11 {
12fd8ce55d9c [svn r29] * Fixed structs inside struct literals
lindquist
parents:
diff changeset
12 }
12fd8ce55d9c [svn r29] * Fixed structs inside struct literals
lindquist
parents:
diff changeset
13
12fd8ce55d9c [svn r29] * Fixed structs inside struct literals
lindquist
parents:
diff changeset
14 struct T
12fd8ce55d9c [svn r29] * Fixed structs inside struct literals
lindquist
parents:
diff changeset
15 {
12fd8ce55d9c [svn r29] * Fixed structs inside struct literals
lindquist
parents:
diff changeset
16 int i;
12fd8ce55d9c [svn r29] * Fixed structs inside struct literals
lindquist
parents:
diff changeset
17 }
12fd8ce55d9c [svn r29] * Fixed structs inside struct literals
lindquist
parents:
diff changeset
18
12fd8ce55d9c [svn r29] * Fixed structs inside struct literals
lindquist
parents:
diff changeset
19 struct U
12fd8ce55d9c [svn r29] * Fixed structs inside struct literals
lindquist
parents:
diff changeset
20 {
12fd8ce55d9c [svn r29] * Fixed structs inside struct literals
lindquist
parents:
diff changeset
21 S s;
12fd8ce55d9c [svn r29] * Fixed structs inside struct literals
lindquist
parents:
diff changeset
22 long l;
12fd8ce55d9c [svn r29] * Fixed structs inside struct literals
lindquist
parents:
diff changeset
23 }