mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-05-05 18:01:29 +02:00
[svn r32] * Fixed problems with arrays members of aggregates
This commit is contained in:
16
test/bug3.d
Normal file
16
test/bug3.d
Normal 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);
|
||||
}
|
||||
Reference in New Issue
Block a user