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:16.2, Ensure that the IUT recognizes altstep definitions and correctly evaluates them
13 ** @verdict pass reject
14 ** @configuration external_functions
15 ***************************************************/
16 module NegSem_1602_toplevel_001 {
18 type record MessageType {
23 type port loopbackPort message {
25 } with {extension "internal"}
27 type component GeneralComp {
28 port loopbackPort messagePort
32 * @desc function returns always 1
35 external function xf_NegSem_1602_toplevel_001() return integer;
38 altstep AltSet1() runs on GeneralComp {
39 var integer v_LocalVar := xf_NegSem_1602_toplevel_001();
40 //attempt to use external function for variable initialization
42 [] messagePort.receive {
48 testcase TC_NegSem_1602_toplevel_001 () runs on GeneralComp {
49 var MessageType v_testMessage;
52 field2 := "test string"
55 connect(self:messagePort,self:messagePort);
57 messagePort.send(v_testMessage);
65 execute(TC_NegSem_1602_toplevel_001());