Mercurial > projects > ldc
view tests/mini/delegate2.d @ 1181:204197eb9eb5
Fix up some naked asm output for mingw32
author | Kelly Wilson <wilsonk cpsc.ucalgary.ca> |
---|---|
date | Mon, 30 Mar 2009 18:18:23 -0600 |
parents | ce95d269bf5a |
children |
line wrap: on
line source
module mini.delegate2; void main() { int foo = 42; int bar() { return foo; } int delegate() dg = &bar; assert(dg() == foo); }