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
12 ******************************************************************************/
25 testcase tc4() runs on C2
27 var template R2 r1 := {
30 var template R2 r2 := {
31 i1 := 1, i2 := 2, i3 := 3, i4 := 4
33 fi( i1:=1, i2:=2, i3:=3 );
34 fi( 1, i2:=2, i3:=3 );
38 fi( -, i1:=1, i2:=2 );
39 fi( -,-,3, i1:=1, i2:=2 );
45 function fit( in template integer it )
50 function fi(in integer i1, integer i2, integer i3 := 0)
52 template integer ti1 := ( 1,2,3 );
53 template integer ti2 modifies ti1 := 42;
56 fit( modifies ti1 := 42 );