Mercurial > projects > ldc
view tests/mini/gc_datasegment.d @ 1021:d1ec9ff0e9ba
Implemented basic -m32 and -m64 options.
author | Tomas Lindquist Olsen <tomas.l.olsen@gmail.com> |
---|---|
date | Sun, 01 Mar 2009 22:27:03 +0100 |
parents | d159da5201f1 |
children |
line wrap: on
line source
extern(C) void gc_collect(); class C { int i = 42; } C data; void main() { data = new C; gc_collect(); assert(data.i == 42); }