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