comparison test/bug3.d @ 28:1c80c18f3c82 trunk

[svn r32] * Fixed problems with arrays members of aggregates
author lindquist
date Thu, 04 Oct 2007 12:49:37 +0200
parents
children 253a5fc4033a
comparison
equal deleted inserted replaced
27:92408a3a2bac 28:1c80c18f3c82
1 module bug3;
2
3 struct S
4 {
5 int[] arr;
6 char[5] ch;
7 }
8
9 void main()
10 {
11 S s;
12 s.arr = new int[5];
13 s.arr[1] = 32;
14 assert(s.arr[0] == 0);
15 assert(s.arr[1] == 32);
16 }