summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/scanner/regress.c10
-rw-r--r--tests/scanner/regress.h2
2 files changed, 12 insertions, 0 deletions
diff --git a/tests/scanner/regress.c b/tests/scanner/regress.c
index 3ed9a862..a2fb90ff 100644
--- a/tests/scanner/regress.c
+++ b/tests/scanner/regress.c
@@ -2929,3 +2929,13 @@ void regress_aliased_caller_alloc (RegressAliasedTestBoxed *boxed)
boxed->priv = g_slice_new0 (RegressTestBoxedPrivate);
boxed->priv->magic = 0xdeadbeef;
}
+
+void
+regress_test_struct_fixed_array_frob (RegressTestStructFixedArray *str)
+{
+ guint i;
+ str->just_int = 7;
+
+ for (i = 0; i < G_N_ELEMENTS(str->array); i++)
+ str->array[i] = 42 + i;
+}
diff --git a/tests/scanner/regress.h b/tests/scanner/regress.h
index 5937fa5d..4133396b 100644
--- a/tests/scanner/regress.h
+++ b/tests/scanner/regress.h
@@ -614,6 +614,8 @@ typedef struct {
gint array[10];
} RegressTestStructFixedArray;
+void regress_test_struct_fixed_array_frob (RegressTestStructFixedArray *str);
+
#define REGRESS_UTF8_CONSTANT "const \xe2\x99\xa5 utf8"
#endif /* __GITESTTYPES_H__ */