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 usenil_no_optional_SE { //^In TTCN-3 module `usenil_no_optional_SE'://
10 33.2.1 The USE-NIL encoding instruction shall only be assigned to a sequence type that has an OPTIONAL
11 component without a final ATTRIBUTE encoding instruction...
14 type record UN0 { //^In type definition// \
15 //^error: The target of an USE-NIL must have at least one component//
22 type record UN { //^In type definition//
25 charstring last //^error: Last component of USE-NIL must be OPTIONAL//
31 type record UN2 { //^In type definition//
34 charstring last //^error: Last component of USE-NIL must not have ATTRIBUTE//
38 variant (i, b, last) "attribute"
44 variant "controlNamespace 'urn:a' prefix 'u'"