Files
ldc/test/bug3.d
Tomas Lindquist Olsen 10db08076c [svn r44] Lots of bug fixes.
New array literal support
New array ~= operator support (for single element)
New with statement support
More...
2007-10-19 07:43:21 +02:00

25 lines
260 B
D

module bug3;
struct S
{
int[] arr;
char[5] ch;
}
class C
{
int[] arr;
char[4] crs;
}
void main()
{
S s;
s.arr = new int[5];
s.arr[1] = 32;
int i;
i = s.arr[0];
//assert(s.arr[0] == 0);
//assert(s.arr[1] == 32);
}