view tests/mini/gc_datasegment.d @ 829:0a31c60a6bc1

.. and fixed the install target (hopefully)
author elrood
date Fri, 05 Dec 2008 22:01:50 +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);
}