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.2, verify that it is possible to use nested actual parameter lists
13 ** @verdict pass accept, ttcn3verdict:pass
14 ***************************************************/
16 // The following requirement is tested:
17 // All parameterized entities specified as an actual parameter shall have their
18 // own parameters resolved in the top-level actual parameter list.
20 module Sem_050402_actual_parameters_188 {
22 type component GeneralComp {
30 template integer mw_int (integer p_upper) := (0..p_upper);
32 template R mw_rec(template integer p_field2) := {
37 function f_test (template R p_match) {
38 if (match({1, 5}, p_match)) { setverdict(pass); }
39 else { setverdict(fail); }
42 testcase TC_Sem_050402_actual_parameters_188() runs on GeneralComp {
43 f_test(mw_rec(mw_int(10)));
47 execute(TC_Sem_050402_actual_parameters_188());