annotate tests/mini/bug18.d @ 341:1bb99290e03a trunk

[svn r362] Started merging the old 'test' dir as well as the newer 'tangotests' dir into 'tests/mini' and 'tests/minicomplex'.
author lindquist
date Sun, 13 Jul 2008 02:51:19 +0200
parents test/bug18.d@4d171915a77b
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
48
4d171915a77b [svn r52] fixed static arrays in struct literals
lindquist
parents:
diff changeset
1 module bug18;
4d171915a77b [svn r52] fixed static arrays in struct literals
lindquist
parents:
diff changeset
2
4d171915a77b [svn r52] fixed static arrays in struct literals
lindquist
parents:
diff changeset
3 struct S {
4d171915a77b [svn r52] fixed static arrays in struct literals
lindquist
parents:
diff changeset
4 int[9] i;
4d171915a77b [svn r52] fixed static arrays in struct literals
lindquist
parents:
diff changeset
5 }
4d171915a77b [svn r52] fixed static arrays in struct literals
lindquist
parents:
diff changeset
6
4d171915a77b [svn r52] fixed static arrays in struct literals
lindquist
parents:
diff changeset
7 void main()
4d171915a77b [svn r52] fixed static arrays in struct literals
lindquist
parents:
diff changeset
8 {
4d171915a77b [svn r52] fixed static arrays in struct literals
lindquist
parents:
diff changeset
9 int[9] i;
4d171915a77b [svn r52] fixed static arrays in struct literals
lindquist
parents:
diff changeset
10 auto s = S(i);
4d171915a77b [svn r52] fixed static arrays in struct literals
lindquist
parents:
diff changeset
11 }