diff options
author | Colin Walters <walters@verbum.org> | 2011-05-04 15:41:53 -0400 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2011-05-04 15:41:53 -0400 |
commit | ae61a2341fad68876cf208cf497cbda221e951e3 (patch) | |
tree | 3b0273e4baf6a4f02d976ee18ac1c01711083974 | |
parent | 57c51b746cb25261a05533010042d535a1749520 (diff) | |
download | gobject-introspection-ae61a2341fad68876cf208cf497cbda221e951e3.tar.gz |
Add test function regress_test_struct_fixed_array_frob
-rw-r--r-- | tests/scanner/regress.c | 10 | ||||
-rw-r--r-- | tests/scanner/regress.h | 2 |
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__ */ |