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 ******************************************************************************/
8 module dupenum_SE { //^In TTCN-3 module `dupenum_SE'://
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)
13 type enumerated e1 //^In type definition//
16 red, //^Previous definition of `red' is here//
19 red } //^error: Duplicate enumeration identifier//
21 variant "text all as uppercased";