constness fixes, round-trip and fuzz-testing for CHOICE
diff --git a/tests/tests-asn1c-compiler/143-inner-parameterization-OK.asn1.-P b/tests/tests-asn1c-compiler/143-inner-parameterization-OK.asn1.-P
index 873ca73..01dab4e 100644
--- a/tests/tests-asn1c-compiler/143-inner-parameterization-OK.asn1.-P
+++ b/tests/tests-asn1c-compiler/143-inner-parameterization-OK.asn1.-P
@@ -27,7 +27,7 @@
.type = &asn_DEF_SpecializedContent_21P0,
.type_selector = 0,
{ .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
- .default_value = 0,
+ 0, 0, /* No default value */
.name = "content13"
},
{ ATF_NOFLAGS, 0, offsetof(struct Message, content42),
@@ -36,7 +36,7 @@
.type = &asn_DEF_SpecializedContent_21P1,
.type_selector = 0,
{ .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
- .default_value = 0,
+ 0, 0, /* No default value */
.name = "content42"
},
};
@@ -105,7 +105,7 @@
/*** <<< CODE [SpecializedContent] >>> ***/
static int
-memb_id_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
+memb_id_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
@@ -130,7 +130,7 @@
}
static int
-memb_id_constraint_3(asn_TYPE_descriptor_t *td, const void *sptr,
+memb_id_constraint_3(const asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
@@ -164,7 +164,7 @@
.type = &asn_DEF_NativeInteger,
.type_selector = 0,
{ .oer_constraints = 0, .per_constraints = 0, .general_constraints = memb_id_constraint_1 },
- .default_value = 0,
+ 0, 0, /* No default value */
.name = "id"
},
};
@@ -206,7 +206,7 @@
.type = &asn_DEF_NativeInteger,
.type_selector = 0,
{ .oer_constraints = 0, .per_constraints = 0, .general_constraints = memb_id_constraint_3 },
- .default_value = 0,
+ 0, 0, /* No default value */
.name = "id"
},
};