Mercurial > projects > ldc
view test/bug13.d @ 147:0636f6269dfd trunk
[svn r152] Relates to ticket #34. Always emit class definition if it is a template instance. Linkage still needs to be fixed.
author | ChristianK |
---|---|
date | Thu, 13 Mar 2008 18:37:52 +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); }