diff options
author | Christoph Reiter <creiter@src.gnome.org> | 2015-07-05 11:32:13 +0200 |
---|---|---|
committer | Christoph Reiter <creiter@src.gnome.org> | 2015-07-05 11:57:34 +0200 |
commit | 0376a2083480c3b9d50c33737e507a56dd2ad1bb (patch) | |
tree | c032afc527f5d77e3b93a84f3ddce31a590ccdb3 /tests/scanner/regress.c | |
parent | d112e8ea4e155312b0b7607101784cad853147c6 (diff) | |
download | gobject-introspection-0376a2083480c3b9d50c33737e507a56dd2ad1bb.tar.gz |
test: Add a test for GList containing GType.
See https://bugzilla.gnome.org/show_bug.cgi?id=749696
https://bugzilla.gnome.org/show_bug.cgi?id=751978
Diffstat (limited to 'tests/scanner/regress.c')
-rw-r--r-- | tests/scanner/regress.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/scanner/regress.c b/tests/scanner/regress.c index 4315fd01..021a17aa 100644 --- a/tests/scanner/regress.c +++ b/tests/scanner/regress.c @@ -990,6 +990,24 @@ regress_assert_test_sequence_list (const GList *in) } /** + * regress_test_glist_gtype_container_in: + * @in: (element-type GType) (transfer container): + */ +void +regress_test_glist_gtype_container_in (GList *in) +{ + GList *l = in; + + g_assert (GPOINTER_TO_SIZE (l->data) == REGRESS_TEST_TYPE_OBJ); + l = l->next; + g_assert (GPOINTER_TO_SIZE (l->data) == REGRESS_TEST_TYPE_SUB_OBJ); + l = l->next; + g_assert (l == NULL); + + g_list_free (in); +} + +/** * regress_test_glist_nothing_in: * @in: (element-type utf8): */ |