Mercurial > projects > ldc
view tangotests/r.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 | 0dec7b3727ea |
children |
line wrap: on
line source
extern(C) int printf(char*, ...); class C { void dump() { printf("C dumped\n"); } } void heap() { auto c = new C; c.dump(); } void stack() { scope c = new C; c.dump(); } void main() { heap(); stack(); }