Mercurial > projects > ldc
view tests/mini/const1.d @ 888:d8c44f1e08e1
Fix #164.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Sat, 17 Jan 2009 17:41:03 +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); }