diff options
author | Colin Walters <walters@src.gnome.org> | 2009-02-02 16:31:02 +0000 |
---|---|---|
committer | Colin Walters <walters@src.gnome.org> | 2009-02-02 16:31:02 +0000 |
commit | 34c6fe51cd8d669d95aef52bda9abbc38257bca9 (patch) | |
tree | 3785e49132f0f2cc0e536d3a677da746f56ba85a /tests/offsets/offsets.h | |
parent | f9a260e02e9921149d52622778ae7c489a5fa257 (diff) | |
download | gobject-introspection-34c6fe51cd8d669d95aef52bda9abbc38257bca9.tar.gz |
Bug 563469 – Arrays not treated correctly in struct offset calculation
Arrays are currently not handled specially, and hence treated as pointers in
giroffsets.c:get_field_size_alignment(), which is (obviously) wrong.
svn path=/trunk/; revision=1078
Diffstat (limited to 'tests/offsets/offsets.h')
-rw-r--r-- | tests/offsets/offsets.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/offsets/offsets.h b/tests/offsets/offsets.h index c0edfe01..9c29a989 100644 --- a/tests/offsets/offsets.h +++ b/tests/offsets/offsets.h @@ -104,4 +104,18 @@ struct _OffsetsNested { char dummy3; }; +/* Test array offsets + */ + +typedef struct _OffsetsArray OffsetsArray; + +struct _OffsetsArray +{ + gint some_ints[2]; + gint8 some_int8s[3]; + gdouble some_doubles[4]; + Enum1 some_enum[2]; + gpointer some_ptrs[5]; +}; + #endif /* __OFFSETS_H__ */ |