Mercurial > projects > ldc
view tangotests/b.d @ 242:ab43d1e1bf2a trunk
[svn r259] Enabled ASM for the GC, this closes #45 by saving the registers on the stack.
author | lindquist |
---|---|
date | Mon, 09 Jun 2008 02:05:02 +0200 |
parents | 68a7dd38c03c |
children |
line wrap: on
line source
class C { int a; union { int i; double d; } int z; } void func() { scope c = new C; access1(c); assert(c.i == 42); access2(c); assert(c.d == 2.5); } void access1(C c) { c.i = 42; } void access2(C c) { c.d = 2.5; } void main() { func(); }