diff options
author | Xavier Claessens <xclaesse@gmail.com> | 2011-08-02 12:03:57 +0200 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2011-08-26 17:29:28 +0200 |
commit | 76c8019b0d7d2b6ecc98daa8277e739e71a2c688 (patch) | |
tree | ad39544b4f32f6d6afa0f72b6599c84f328926b2 /tests/scanner/regress.c | |
parent | c6de8d335b9ce0d0e3be4d0acb760d71007abb62 (diff) | |
download | gobject-introspection-76c8019b0d7d2b6ecc98daa8277e739e71a2c688.tar.gz |
Add a regress test for a method returning GPtrArray
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 276a7d10..191ae08b 100644 --- a/tests/scanner/regress.c +++ b/tests/scanner/regress.c @@ -1316,6 +1316,24 @@ regress_test_ghash_nested_everything_return2 (void) /************************************************************************/ +/** + * regress_test_garray_container_return: + * + * Returns: (transfer container) (type GLib.PtrArray) (element-type utf8): + */ +GPtrArray * +regress_test_garray_container_return (void) +{ + GPtrArray *array; + + array = g_ptr_array_new_with_free_func (g_object_unref); + g_ptr_array_add (array, g_strdup ("regress")); + + return array; +} + +/************************************************************************/ + /* error? */ /* enums / flags */ |