summaryrefslogtreecommitdiff
path: root/tests/structs
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@ubuntu.com>2020-01-24 23:29:01 +0100
committerRico Tzschichholz <ricotz@ubuntu.com>2020-01-25 18:52:59 +0100
commit83acacae8a6afc59093714ba8b3454abc87b7d45 (patch)
tree472e4174c15247baa83409d8f4689a28a9e5da45 /tests/structs
parentd839ffe77b00df60ee7c8d8108433c95f0b27b47 (diff)
downloadvala-83acacae8a6afc59093714ba8b3454abc87b7d45.tar.gz
codegen: Skip StructRegisterFunction for boolean/integer/floating types
Fixes https://gitlab.gnome.org/GNOME/vala/issues/901
Diffstat (limited to 'tests/structs')
-rw-r--r--tests/structs/struct-no-gtype-inherit.vala11
1 files changed, 11 insertions, 0 deletions
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 () {
+}