1 #include <glib-object.h>
12 tmp = g_object_new (G_TYPE_OBJECT, NULL);
13 g_assert_cmpint (tmp->ref_count, ==, 1);
14 o = g_object_ref (tmp);
17 g_assert_cmpint (tmp->ref_count, ==, 2);
19 g_assert_cmpint (tmp->ref_count, ==, 1);
26 main (int argc, char **argv)
28 g_test_init (&argc, &argv, NULL);
32 g_test_add_func ("/object/clear", test_clear);