Mercurial > projects > ldc
view tests/mini/const1.d @ 1542:ba2a5d2fe748
raw_fd_ostream takes a force parameter now
Build fix for LLVM 75801.
author | Benjamin Kramer <benny.kra@gmail.com> |
---|---|
date | Wed, 15 Jul 2009 20:04:42 +0200 |
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); }