Fix missing struct clear in monster test
@@ -720,8 +720,14 @@ int gen_monster(flatcc_builder_t *B, int with_size)
test[1].a = 0x50;
test[1].b = 0x60;
ns(Monster_test4_push_create(B, 0x70, (int8_t)0x80));
+ /*
+ * Zero padding within struct
+ * - not needed when receiving a pointer like `test` in the above.
+ */
+ ns(Test_clear(&x));
x.a = 0x190; /* This is a short. */
x.b = (int8_t)0x91; /* This is a byte. */
+ /* And x also has a hidden trailing padding byte. */
ns(Monster_test4_push(B, &x));
ns(Monster_test4_push(B, &x));
/* We can use either field mapped push or push on the type. */
