Titan Core Initial Contribution
[deliverable/titan.core.git] / function_test / Semantic_Analyser / xer / usenil_clash_SE.ttcn
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 usenil_clash_SE { //^In TTCN-3 module `usenil_clash_SE'://
9 /*
10 33.2.7 A type with USE-NIL final encoding instruction shall not also have
11 any of the final encoding instructions UNTAGGED or USE-QNAME.
12 */
13
14 type record U1 { //^In type definition// \
15 //^error: The target of an USE-NIL encoding instruction shall not have a final UNTAGGED encoding instruction// \
16 //^error: A type with final encoding attribute UNTAGGED shall not have any of the final encoding instructions ANY-ATTRIBUTES, ANY-ELEMENT, ATTRIBUTE, DEFAULT-FOR-EMPTY, EMBED-VALUES, PI-OR-COMMENT, USE-NIL or USE-TYPE//
17 integer last optional
18 }
19 with {
20 variant "useNil";
21 variant "untagged";
22 }
23
24 type record U2 { //^In type definition// \
25 //^error: A type with USE-QNAME shall not have USE-NIL//
26 universal charstring first optional,
27 universal charstring last optional //^error: The second component of a type with USE-QNAME must NOT be optional$//
28 }
29 with {
30 variant "useNil";
31 variant (first) "attribute";
32 variant "XSD:QName";
33 }
34
35 }
36 with {
37 encode "XML";
38 variant "controlNamespace 'urn:a' prefix 'u'"
39 }
This page took 0.032634 seconds and 5 git commands to generate.