Files
ldc/test/bug13.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

19 lines
221 B
D

module bug13;
void func1(ubyte[4]* arr)
{
ubyte* b = &(*arr)[0];
func2(&(*arr)[1]);
}
void func2(ubyte* ptr)
{
assert(*ptr == 2);
}
void main()
{
ubyte[4] arr = [cast(ubyte)1,2,3,4];
func1(&arr);
}