Mercurial > projects > ldc
view test/bug13.d @ 124:a939ec89fc72 trunk
[svn r128] function local typedefs were not working
author | lindquist |
---|---|
date | Wed, 28 Nov 2007 03:34:37 +0100 |
parents | 8b0e809563df |
children |
line wrap: on
line source
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); }