Titan Core Initial Contribution
[deliverable/titan.core.git] / function_test / Semantic_Analyser / xer / dupenum_SE.ttcn
CommitLineData
114d1c9a
EL
1/******************************************************************************
2 * Copyright (c) 2000-2014 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 ******************************************************************************/
8module dupenum_SE { //^In TTCN-3 module `dupenum_SE'://
9
10// This is not a XER test as such (the error is the duplicate enum value)
11// but it keeps Type::chk_xer_text() on its toes (no FATAL_ERROR, no memory leak)
12
13type enumerated e1 //^In type definition//
14{
15 little,
16 red, //^Previous definition of `red' is here//
17 riding,
18 hood,
19 red } //^error: Duplicate enumeration identifier//
20with {
21 variant "text all as uppercased";
22}
23
24}
25with {
26 encode "XML";
27}
This page took 0.023284 seconds and 5 git commands to generate.