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:15.5, Ensure that the values of plain modified template definitions are as expected.
13 ** @verdict pass accept, ttcn3verdict:pass
14 *****************************************************************/
16 /*A modified template may also be declared fuzzy using the @fuzzy modifier.
17 If a fuzzy modified template modifies a non-fuzzy unparameterized template, the inherited fields before modification will be the same for every evaluation of the fuzzy template.*/
19 module Sem_1505_ModifiedTemplates_008 {
21 type port MyMessagePortType message {
25 type component GeneralComp {
26 port MyMessagePortType pt_myPort;
29 type record MyMessageType {
35 template MyMessageType m_templateOne := {
37 field2 := "Hello World",
41 template @fuzzy MyMessageType m_templateTwo modifies m_templateOne := {
46 testcase TC_Sem_1505_ModifiedTemplates_008() runs on GeneralComp {
47 if ((valueof(m_templateTwo.field1) == 4) and
48 (valueof(m_templateTwo.field2) == "Hello World") and
49 (valueof(m_templateTwo.field3) == true)
58 execute(TC_Sem_1505_ModifiedTemplates_008());