class Foo : Object {
    public Foo () { message("ctor\n"); }
    ~Foo()        { message("dtor\n"); }
}

void main()
{
    var map = new Gee.TreeMap <int, Foo> ();
    map.set(0, new Foo());
    map.clear();
}
