1 /******************************************************************************
2 * Copyright (c) 2000-2016 Ericsson Telecom AB
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v10.html
9 * Adrien Kirjak – initial implementation
12 ** @purpose 1:5.4.1.2, Ensure that the IUT correctly handles parametrization through the use of parameterized templates.
13 ** @verdict pass accept, ttcn3verdict:pass
14 ***************************************************/
15 module Sem_05040102_parameters_of_kind_template_001 {
17 type enumerated MyEnumeratedType {e_black, e_white}
20 type record MyRecord {
25 template MyRecord m_parametrizedTemplate(integer p_integer := 5, template integer p_integerTemplate := ? ) := {
27 field2 := p_integerTemplate
30 type component GeneralComp {
35 testcase TC_Sem_05040102_parameters_of_kind_template_001() runs on GeneralComp {
37 var MyRecord DefaultValues := {
39 field2 := 1 //any number can be used here to correspond with ? matching
42 var MyRecord ModifiedValues := {
47 if ( match(DefaultValues, m_parametrizedTemplate) and
48 match(ModifiedValues, m_parametrizedTemplate(2,1)))
57 execute(TC_Sem_05040102_parameters_of_kind_template_001());