summaryrefslogtreecommitdiff
path: root/tests/scanner/regress.h
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2012-07-08 20:36:50 -0400
committerColin Walters <walters@verbum.org>2012-07-08 20:36:50 -0400
commitf77cfc4275b1fba4f9fedea6e40b00e0ebbe142c (patch)
treeabb7eef652d30ef0d0cefe8e642b054c6dfec4bf /tests/scanner/regress.h
parent3943988d5addbea4603f9b4ee5103c604d03e8f4 (diff)
downloadgobject-introspection-f77cfc4275b1fba4f9fedea6e40b00e0ebbe142c.tar.gz
scanner: Ensure "complete_ctype" patch doesn't throw an exception for anonymous unions
The previous patch introduced a regression where we would crash on encountering an anonymous union. Work around this by just writing out 'gpointer' in this case, and add a regression test.
Diffstat (limited to 'tests/scanner/regress.h')
-rw-r--r--tests/scanner/regress.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/scanner/regress.h b/tests/scanner/regress.h
index 97b9135b..fd937cdd 100644
--- a/tests/scanner/regress.h
+++ b/tests/scanner/regress.h
@@ -875,4 +875,15 @@ void regress_test_struct_fixed_array_frob (RegressTestStructFixedArray *str);
void regress_has_parameter_named_attrs (int foo,
gpointer attributes);
+
+typedef struct {
+ int dummy;
+ struct {
+ const char *name;
+ guint x;
+ } attributes[32];
+
+ double dummy2;
+} RegressLikeGnomeKeyringPasswordSchema;
+
#endif /* __GITESTTYPES_H__ */