omit_valueof.ttcn 764 Bytes
Newer Older
Elemer Lelik's avatar
Elemer Lelik committed
1
/******************************************************************************
Lenard Nagy's avatar
Lenard Nagy committed
2
 * Copyright (c) 2000-2017 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
24
25
 * 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_valueof {
control {
  var integer i;
  const integer c := 1;
  template integer ti := 23;
  var template integer ti2;

  // valueof has no effect
  i := valueof(5);
  i := valueof(c + 2);

  // valueof is ok ??? (not sure about this)
  i := valueof(i);
  i := valueof(ti);
  i := valueof(ti2);

}
}