magic_string.ttcn 799 Bytes
Newer Older
Elemer Lelik's avatar
Elemer Lelik committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/******************************************************************************
 * Copyright (c) 2000-2014 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
 ******************************************************************************/
module magic_string {
control {
  // magic strings:
  var bitstring bs := '10001'B;
  var charstring cs := "asdf";
  var octetstring os := 'F00F'O;
  var hexstring hs := 'ACE'H;

  // not magic strings:
  const bitstring cbs := '10001'B;
  const charstring ccs := "asdf";
  const octetstring cos := 'F00F'O;
  const hexstring chs := 'ACE'H;

}
}