/****************************************************************************** * Copyright (c) 2000-2016 Ericsson Telecom AB * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * Adrien Kirjak – initial implementation * ** @version 0.0.1 ** @purpose 1:5.4.1.2, verify that in template formal parameters of test case can have default values ** @verdict pass accept, noexecution ***************************************************/ // The following requirement is tested: // In parameters may have a default template, which is given by a template instance // assigned to the parameter. module Sem_05040102_parameters_of_kind_template_013 { type component GeneralComp { } type record R { integer field1, integer field2 } testcase TC(template integer p_int1 := ?, in template integer p_int2 := (0..5)) runs on GeneralComp { if(match(6,p_int2) and not match(2,p_int2)) { setverdict(fail); } else { setverdict(pass); } } control { execute(TC()); } }