magic_number.ttcn 709 Bytes
Newer Older
Elemer Lelik's avatar
Elemer Lelik committed
1
/******************************************************************************
balaskoa's avatar
balaskoa committed
2
 * Copyright (c) 2000-2016 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
 * 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 magic_number {
control {
  // 6, 6, 43, 123... are magic numbers
  var integer i := 6;
  for (i := -6; i< -43; i := i * 1234567898765432123456789) {}
  
  // 2345, 5, 0 are not magic numbers
  const integer c := -2345;  
  i := 5 * (-5) + 0;
  
}
}