constness fixes, round-trip and fuzz-testing for CHOICE
diff --git a/tests/tests-asn1c-compiler/147-inherit-per-constraints-OK.asn1.-Pgen-OER b/tests/tests-asn1c-compiler/147-inherit-per-constraints-OK.asn1.-Pgen-OER
index 41ecc19..b8e9b11 100644
--- a/tests/tests-asn1c-compiler/147-inherit-per-constraints-OK.asn1.-Pgen-OER
+++ b/tests/tests-asn1c-compiler/147-inherit-per-constraints-OK.asn1.-Pgen-OER
@@ -23,7 +23,7 @@
/*** <<< CODE [Short] >>> ***/
int
-Short_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
+Short_constraint(const asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
@@ -103,7 +103,7 @@
/*** <<< CODE [Alias] >>> ***/
int
-Alias_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
+Alias_constraint(const asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
@@ -184,7 +184,7 @@
/*** <<< CODE [Soo] >>> ***/
static int
-memb_foo_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
+memb_foo_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
@@ -224,7 +224,7 @@
.type = &asn_DEF_NativeInteger,
.type_selector = 0,
{ .oer_constraints = &asn_OER_memb_foo_constr_2, .per_constraints = 0, .general_constraints = memb_foo_constraint_1 },
- .default_value = 0,
+ 0, 0, /* No default value */
.name = "foo"
},
{ ATF_NOFLAGS, 0, offsetof(struct Soo, bar),
@@ -233,7 +233,7 @@
.type = &asn_DEF_Short,
.type_selector = 0,
{ .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
- .default_value = 0,
+ 0, 0, /* No default value */
.name = "bar"
},
{ ATF_NOFLAGS, 0, offsetof(struct Soo, baz),
@@ -242,7 +242,7 @@
.type = &asn_DEF_Alias,
.type_selector = 0,
{ .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
- .default_value = 0,
+ 0, 0, /* No default value */
.name = "baz"
},
};