https://bugzilla.gnome.org/show_bug.cgi?id=764041
push_context (new EmitContext (st));
push_line (st.source_reference);
+ if (get_ccode_has_type_id (st) && get_ccode_name (st).length < 3) {
+ st.error = true;
+ Report.error (st.source_reference, "Name `%s' is too short for struct using GType".printf (get_ccode_name (st)));
+ return;
+ }
+
var old_instance_finalize_context = instance_finalize_context;
instance_finalize_context = new EmitContext ();
structs/bug690380.vala \
structs/bug694140.vala \
structs/bug749952.vala \
+ structs/bug764041.test \
structs/bug775761.vala \
delegates/casting.vala \
delegates/delegates.vala \
--- /dev/null
+Invalid Code
+
+struct N {
+ public int i;
+}
+
+void main() {
+ N n = { 42 };
+ Value v = n;
+}