class Foo : GLib.Object {
  private class int instances;
  private static int instances_complete = 0;

  class construct {
    instances = 0;
  }

  construct {
    instances++;
    instances_complete++;
  }

  public void print () {
    stdout.printf ("%d %d\n", instances, instances_complete);
  }
}

class Bar : Foo {

}

static void main () {
  (new Foo ()).print ();
  (new Bar ()).print ();
  (new Foo ()).print ();
  (new Bar ()).print ();
  (new Foo ()).print ();
  (new Bar ()).print ();
  (new Foo ()).print ();
  (new Bar ()).print ();
  (new Foo ()).print ();
  (new Foo ()).print ();
  (new Bar ()).print ();
  (new Bar ()).print ();
}
