[svn r32] * Fixed problems with arrays members of aggregates

This commit is contained in:
Tomas Lindquist Olsen
2007-10-04 12:49:37 +02:00
parent 02cf2ac384
commit 67f3d8ae60
3 changed files with 45 additions and 11 deletions

16
test/bug3.d Normal file
View File

@@ -0,0 +1,16 @@
module bug3;
struct S
{
int[] arr;
char[5] ch;
}
void main()
{
S s;
s.arr = new int[5];
s.arr[1] = 32;
assert(s.arr[0] == 0);
assert(s.arr[1] == 32);
}