Sync with 5.4.2
[deliverable/titan.core.git] / function_test / Semantic_Analyser / encode / encode_SE.ttcn
CommitLineData
114d1c9a 1/******************************************************************************
3abe9331 2 * Copyright (c) 2000-2015 Ericsson Telecom AB
114d1c9a
EL
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
7 ******************************************************************************/
3f84031e 8module encode_SE {
114d1c9a 9
3f84031e 10type integer AnInt with { encode "nonexistent" }; //^error\: No custom decoding function found for type//
114d1c9a 11
3f84031e 12type record ARecord { //^error\: No custom decoding function found for type//
114d1c9a
EL
13 integer i,
14 octetstring os
15}
16
3f84031e 17control {
114d1c9a
EL
18 var ARecord x;
19 var AnInt y;
20 var bitstring bs := '110'B;
21
3f84031e 22 if (decvalue(bs, y) != 0) {}
23 if (decvalue(bs, x) != 0) {}
114d1c9a
EL
24}
25
26} with {
27 encode "whatever"
28}
This page took 0.025139 seconds and 5 git commands to generate.