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.8, Ensure that the template(present) with anyvalue(?) can't be assigned to an omit restricted variable template
13 ** @verdict pass reject
14 *****************************************************************/
17 module NegSem_1508_TemplateRestrictions_029 {
19 type record ExampleType { // Exampletype record contains a charstring and a boolean
24 type component GeneralComp {
25 var template (omit) ExampleType v_omit; //omit restricted template variable
28 template (present) ExampleType MyintTemplate :={
29 //actual template with present restriction contains anytype (?)
34 testcase TC_NegSem_1508_TemplateRestrictions_029() runs on GeneralComp {
36 v_omit := MyintTemplate; //error: v_omit is omit restricted, hence can not contain anytype(?)
38 if (valueof(v_omit.b) == false) {
46 execute(TC_NegSem_1508_TemplateRestrictions_029());