omit_started_retval.ttcn 807 Bytes
Newer Older
Elemer Lelik's avatar
Elemer Lelik committed
1
/******************************************************************************
Elemer Lelik's avatar
Elemer Lelik committed
2
 * Copyright (c) 2000-2015 Ericsson Telecom AB
Elemer Lelik's avatar
Elemer Lelik committed
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
 * 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
 ******************************************************************************/
module omit_started_retval {
import from types all;

function f1() runs on c1_CT return integer {return 0;}
function f2() runs on c1_CT {}

testcase t() runs on c1_CT {
  var c1_CT c := c1_CT.create;
  // unused return value from started function
  c.start(f1());
  
  // fine
  c.start(f2());
  // should test a type with 'done' extension attribute
}
}