Skip to content
Snippets Groups Projects
Commit 5dd61b50 authored by Botond Baranyi's avatar Botond Baranyi
Browse files

Fixed missing governor for the target of decmatch


Signed-off-by: default avatarBotond Baranyi <botond.baranyi@ericsson.com>
parent 0bf78d39
No related branches found
No related tags found
1 merge request!513Fixed missing governor for the target of decmatch (#752)
......@@ -7617,6 +7617,7 @@ bool Type::chk_this_template_Str(Template *t, namedbool out_inout_par_allowed, n
if (target->get_Type() != NULL && target_type->is_ref()) {
target_type = target_type->get_type_refd();
}
target->get_Template()->set_my_governor(target_type);
self_ref = target_type->chk_this_template_generic(
target->get_Template(), (target->get_DerivedRef() != NULL) ?
INCOMPLETE_ALLOWED : INCOMPLETE_NOT_ALLOWED,
......
......@@ -241,6 +241,18 @@ testcase tc_PDU103_6()runs on CT {
log("tl_Message2: ", tl_Message2);
// log(match(vl_msg, t_Message2))
}
// compile-only test
type record R {
octetstring s
} with {
variant "";
}
template R T (template octetstring ts := ?) := {
s := ts
}
template R T1 := T(decmatch T);
control {
execute( tc_PDU101_1());
execute(tc_PDU101_1param());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment