mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-28 01:23:14 +01:00
[svn r44] Lots of bug fixes.
New array literal support New array ~= operator support (for single element) New with statement support More...
This commit is contained in:
18
test/bug13.d
Normal file
18
test/bug13.d
Normal file
@@ -0,0 +1,18 @@
|
||||
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);
|
||||
}
|
||||
Reference in New Issue
Block a user