summaryrefslogtreecommitdiff
path: root/tests/scanner/regress.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/scanner/regress.c')
-rw-r--r--tests/scanner/regress.c10
1 files changed, 10 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;
+}