Mercurial > projects > ldc
view tests/mini/gc_datasegment.d @ 880:2dfd05525e2e
Fixed bad return types in typinf.cpp
author | Tomas Lindquist Olsen <tomas.l.olsen@gmail.com> |
---|---|
date | Fri, 09 Jan 2009 20:08:06 +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); }