Mercurial > projects > ldc
view tests/mini/gc_datasegment.d @ 638:94b01f15814f
Added FreeBSD support to the -t switch
author | Tomas Lindquist Olsen <tomas.l.olsen@gmail.com> |
---|---|
date | Thu, 02 Oct 2008 03:38:29 +0200 |
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); }