Mercurial > projects > ldc
view tests/mini/gc_datasegment.d @ 1555:ed0cffe895ec
use the new NamedMDNode class
this will need a LLVM >= r77619
author | Benjamin Kramer <benny.kra@gmail.com> |
---|---|
date | Thu, 30 Jul 2009 20:54:03 +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); }