diff --git a/tests/tests-asn1c-compiler/155-parameterization-more-than-two-level-OK.asn1.-Pgen-PER b/tests/tests-asn1c-compiler/155-parameterization-more-than-two-level-OK.asn1.-Pgen-PER index 487518838..1bda35fa3 100644 --- a/tests/tests-asn1c-compiler/155-parameterization-more-than-two-level-OK.asn1.-Pgen-PER +++ b/tests/tests-asn1c-compiler/155-parameterization-more-than-two-level-OK.asn1.-Pgen-PER @@ -9,6 +9,7 @@ typedef long PacketId_t; /*** <<< FUNC-DECLS [PacketId] >>> ***/ +#define PacketId_id_TYPE1 ((PacketId_t)1) extern asn_per_constraints_t asn_PER_type_PacketId_constr_1; extern asn_TYPE_descriptor_t asn_DEF_PacketId; asn_struct_free_f PacketId_free; diff --git a/tests/tests-asn1c-compiler/50-constraint-OK.asn1.-Pfwide-types b/tests/tests-asn1c-compiler/50-constraint-OK.asn1.-Pfwide-types index 32fbaeb61..74a352e2b 100644 --- a/tests/tests-asn1c-compiler/50-constraint-OK.asn1.-Pfwide-types +++ b/tests/tests-asn1c-compiler/50-constraint-OK.asn1.-Pfwide-types @@ -17,6 +17,7 @@ ber_type_decoder_f Int1_decode_ber; der_type_encoder_f Int1_encode_der; xer_type_decoder_f Int1_decode_xer; xer_type_encoder_f Int1_encode_xer; +#define Int1_ten ((Int1_t)10) /*** <<< CODE [Int1] >>> ***/ diff --git a/tests/tests-asn1c-compiler/50-constraint-OK.asn1.-Pgen-PER b/tests/tests-asn1c-compiler/50-constraint-OK.asn1.-Pgen-PER index 3f6669ed8..73c13ce9b 100644 --- a/tests/tests-asn1c-compiler/50-constraint-OK.asn1.-Pgen-PER +++ b/tests/tests-asn1c-compiler/50-constraint-OK.asn1.-Pgen-PER @@ -19,6 +19,7 @@ xer_type_decoder_f Int1_decode_xer; xer_type_encoder_f Int1_encode_xer; per_type_decoder_f Int1_decode_uper; per_type_encoder_f Int1_encode_uper; +#define Int1_ten ((Int1_t)10) /*** <<< CODE [Int1] >>> ***/ diff --git a/tests/tests-asn1c-compiler/asn_constant.h b/tests/tests-asn1c-compiler/asn_constant.h new file mode 100644 index 000000000..3807cd037 --- /dev/null +++ b/tests/tests-asn1c-compiler/asn_constant.h @@ -0,0 +1,18 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + */ + +#ifndef _ASN_CONSTANT_H +#define _ASN_CONSTANT_H + +#ifdef __cplusplus +extern "C" { +#endif + + + +#ifdef __cplusplus +} +#endif + +#endif /* _ASN_CONSTANT_H */