diff options
author | Rico Tzschichholz <ricotz@ubuntu.com> | 2020-01-24 23:29:01 +0100 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2020-01-25 18:52:59 +0100 |
commit | 83acacae8a6afc59093714ba8b3454abc87b7d45 (patch) | |
tree | 472e4174c15247baa83409d8f4689a28a9e5da45 /tests | |
parent | d839ffe77b00df60ee7c8d8108433c95f0b27b47 (diff) | |
download | vala-83acacae8a6afc59093714ba8b3454abc87b7d45.tar.gz |
codegen: Skip StructRegisterFunction for boolean/integer/floating types
Fixes https://gitlab.gnome.org/GNOME/vala/issues/901
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Makefile.am | 1 | ||||
-rw-r--r-- | tests/structs/struct-no-gtype-inherit.vala | 11 |
2 files changed, 12 insertions, 0 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am index 24f9d1622..81cde2fe9 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -241,6 +241,7 @@ TESTS = \ structs/struct-base-types.vala \ structs/struct-empty-still.test \ structs/struct-no-gtype.vala \ + structs/struct-no-gtype-inherit.vala \ structs/struct-static-field-initializer.vala \ structs/struct-static-field-initializer.test \ structs/struct-static-property-initializer.test \ diff --git a/tests/structs/struct-no-gtype-inherit.vala b/tests/structs/struct-no-gtype-inherit.vala new file mode 100644 index 000000000..3dc3e8c0a --- /dev/null +++ b/tests/structs/struct-no-gtype-inherit.vala @@ -0,0 +1,11 @@ +[SimpleType] +[IntegerType (rank = 6, signed = true, width = 32)] +[CCode (has_type_id = false)] +struct foo_t { +} + +struct bar_t : foo_t { +} + +void main () { +} |