Mercurial > projects > ldc
view tests/mini/const1.d @ 1631:e16ea850ff81
missed ldcbinarypath => ldcbinarydir
author | Moritz Warning <moritzwarning@web.de> |
---|---|
date | Tue, 09 Feb 2010 13:53:13 +0100 |
parents | 722630261d62 |
children |
line wrap: on
line source
module mini.const1; void* g = cast(void*)&foobar; int foobar() { return 42; } void main() { auto fn = cast(int function())g; int i = fn(); assert(i == 42); }