summaryrefslogtreecommitdiff
path: root/tests/scanner/regress.c
diff options
context:
space:
mode:
authorJonathan Matthew <jonathan@d14n.org>2010-10-27 19:11:13 +1000
committerJonathan Matthew <jonathan@d14n.org>2010-12-16 07:45:36 +1000
commit24a5ba0dc0be57146f6504679adf2527ed4a2802 (patch)
treef270f24231da3557c9a9e5e56bbb19dbe77419bf /tests/scanner/regress.c
parent112100a47956effefc07ed594fb921cf941fd828 (diff)
downloadgobject-introspection-24a5ba0dc0be57146f6504679adf2527ed4a2802.tar.gz
scanner: support typedefs for container types
Inside an alias definition, we only need the name of the alias target type. Add a method to GIRWriter to write out a type reference rather than full type definition and use it when writing out an alias. Determine introspectableness of aliases in IntrospectablePass so functions using aliases can be marked not-introspectable if the alias itself is not. https://bugzilla.gnome.org/show_bug.cgi?id=629682
Diffstat (limited to 'tests/scanner/regress.c')
-rw-r--r--tests/scanner/regress.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/scanner/regress.c b/tests/scanner/regress.c
index e6350b7b..faac481e 100644
--- a/tests/scanner/regress.c
+++ b/tests/scanner/regress.c
@@ -2871,3 +2871,21 @@ regress_test_strv_in_gvalue (void)
return value;
}
+
+/**
+ * regress_introspectable_via_alias:
+ *
+ */
+void
+regress_introspectable_via_alias (RegressPtrArrayAlias *data)
+{
+}
+
+/**
+ * regress_not_introspectable_via_alias:
+ *
+ */
+void
+regress_not_introspectable_via_alias (RegressVaListAlias ok)
+{
+}