summaryrefslogtreecommitdiff
path: root/tests/warn/missing-element-type.h
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2012-12-10 13:12:13 -0500
committerColin Walters <walters@verbum.org>2012-12-10 13:46:04 -0500
commitf8e95c68dc0e4a0fb35979db7415de8ec09e1e7e (patch)
tree38b73d28154947280c9c783295a922d2fc9dc03a /tests/warn/missing-element-type.h
parent702a24d97be5f046cabbe8ae84638683de114e8a (diff)
downloadgobject-introspection-f8e95c68dc0e4a0fb35979db7415de8ec09e1e7e.tar.gz
scanner: Warn if we're missing (element-type) for GPtrArray
For background, See https://bugzilla.gnome.org/show_bug.cgi?id=629682 See https://bugzilla.gnome.org/show_bug.cgi?id=689871 Basically we should emit a warning here. https://bugzilla.gnome.org/show_bug.cgi?id=689998
Diffstat (limited to 'tests/warn/missing-element-type.h')
-rw-r--r--tests/warn/missing-element-type.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/warn/missing-element-type.h b/tests/warn/missing-element-type.h
index 1f958a74..87206403 100644
--- a/tests/warn/missing-element-type.h
+++ b/tests/warn/missing-element-type.h
@@ -8,3 +8,11 @@
GSList *test_gslist_element_type(void);
// EXPECT:6: Warning: Test: test_gslist_element_type: return value: Missing (element-type) annotation
+
+/**
+ * test_ptrarray_element_type:
+ * @somearray: An array.
+ */
+void test_ptrarray_arg_element_type(GPtrArray *somearray);
+
+// EXPECT:16: Warning: Test: test_ptrarray_arg_element_type: argument somearray: Missing (element-type) annotation