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 base template and modified template cannot be the same
13 ** @verdict pass reject, noexectuion
14 *****************************************************************/
16 /*A modified template shall not refer to itself, either directly or indirectly, i.e. recursive derivation is not
19 module NegSyn_1505_ModifiedTemplates_001{
21 type component GeneralComp { }
23 type record MyMessageType {
29 template MyMessageType m_templateOne(integer p_intValue) := {
31 field2 := "Hello World",
35 template MyMessageType m_templateTwo(integer p_intValue) modifies m_templateOne := {
39 //error: not allowed to modify itself
40 template MyMessageType m_templateTwo(integer p_intValue) modifies m_templateTwo := {