constness fixes, round-trip and fuzz-testing for CHOICE
diff --git a/tests/tests-asn1c-compiler/139-component-relation-OK.asn1.-P b/tests/tests-asn1c-compiler/139-component-relation-OK.asn1.-P
index 495570c..e9af4b3 100644
--- a/tests/tests-asn1c-compiler/139-component-relation-OK.asn1.-P
+++ b/tests/tests-asn1c-compiler/139-component-relation-OK.asn1.-P
@@ -62,7 +62,7 @@
/*** <<< CODE [Frame] >>> ***/
static int
-memb_ident_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
+memb_ident_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
if(!sptr) {
@@ -104,7 +104,7 @@
}
static int
-memb_value_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
+memb_value_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
if(!sptr) {
@@ -132,7 +132,7 @@
.type = &asn_DEF_PrimitiveMessage,
.type_selector = 0,
{ .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
- .default_value = 0,
+ 0, 0, /* No default value */
.name = "PrimitiveMessage"
},
{ ATF_NOFLAGS, 0, offsetof(struct value, choice.ComplexMessage),
@@ -141,7 +141,7 @@
.type = &asn_DEF_ComplexMessage,
.type_selector = 0,
{ .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
- .default_value = 0,
+ 0, 0, /* No default value */
.name = "ComplexMessage"
},
};
@@ -156,7 +156,7 @@
sizeof(((struct value *)0)->present),
.tag2el = asn_MAP_value_tag2el_3,
.tag2el_count = 2, /* Count of tags in the map */
- .canonical_order = 0,
+ 0, 0,
.ext_start = -1 /* Extensions start */
};
static /* Use -fall-defs-global to expose */
@@ -181,7 +181,7 @@
.type = &asn_DEF_NativeInteger,
.type_selector = 0,
{ .oer_constraints = 0, .per_constraints = 0, .general_constraints = memb_ident_constraint_1 },
- .default_value = 0,
+ 0, 0, /* No default value */
.name = "ident"
},
{ ATF_OPEN_TYPE | ATF_NOFLAGS, 0, offsetof(struct Frame, value),
@@ -190,7 +190,7 @@
.type = &asn_DEF_value_3,
.type_selector = select_value_type,
{ .oer_constraints = 0, .per_constraints = 0, .general_constraints = memb_value_constraint_1 },
- .default_value = 0,
+ 0, 0, /* No default value */
.name = "value"
},
};