Sync with 5.4.0
[deliverable/titan.core.git] / function_test / Semantic_Analyser / xer / untagged_charenc_optional_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 ******************************************************************************/
8module untagged_charenc_optional_SE { //^In TTCN-3 module `untagged_charenc_optional_SE'://
9
10type record parent { //^In type definition//
11 charstring trouble optional //^error: UNTAGGED field should not be marked OPTIONAL or DEFAULT//
12}
13with {
14 variant (trouble) "untagged"
15}
16
17type charstring unt
18with {
19 variant "untagged"
20}
21
22external function enc_unt(in unt u) return octetstring //^In external function definition// \
23 //^warning: UNTAGGED encoding attribute is ignored on top-level type$//
24with { extension "prototype(convert) encode(XER:XER_EXTENDED)" }
25
26type record parent2 {
27 unt trouble optional // no message
28}
29
30}
31with {
32encode "XML";
33}
This page took 0.045288 seconds and 5 git commands to generate.