Sync with 5.1.0
[deliverable/titan.core.git] / regression_test / negativeTest / NegTestTypes.asn
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 NegTestTypes
9 DEFINITIONS
10 ::= BEGIN
11 IMPORTS ;
12
13 -- Last modified:2011-02-22
14
15 -- 0. Elementary Types
16
17 MyInteger10 ::= INTEGER (1..10)
18
19 MyInteger ::= INTEGER
20
21 MyCharstring10 ::= PrintableString ( SIZE( 2..5) )
22
23 MyCharstring ::= VisibleString
24
25 MyEnum ::= ENUMERATED { first(1), second(2), third(3) }
26
27 -- 1. Sequence (record_
28
29 MySeqEmpty ::= SEQUENCE { }
30 MySeqBool ::= SEQUENCE { b BOOLEAN }
31 MySeqNull ::= SEQUENCE { n NULL }
32 MySeqInt ::= SEQUENCE { i INTEGER }
33 MySeqMyEnum ::= SEQUENCE { e MyEnum }
34 MySeqInt2 ::= SEQUENCE { i INTEGER, j INTEGER }
35
36 MySeqInt2opt ::= SEQUENCE {
37 i INTEGER,
38 j INTEGER OPTIONAL
39 }
40 MySeqInt3opt ::= SEQUENCE {
41 i INTEGER,
42 j INTEGER,
43 k INTEGER OPTIONAL
44 }
45
46 MySeqIntSeqInt2 ::= SEQUENCE {
47 i INTEGER,
48 jk MySeqInt2
49 }
50
51 MySeqIntSeqInt2opt ::= SEQUENCE {
52 i INTEGER OPTIONAL,
53 jk MySeqInt2
54 }
55
56 MySeqIntSeqInt2optopt ::= SEQUENCE {
57 i INTEGER OPTIONAL,
58 jk MySeqInt2opt
59 }
60
61 MySeqInt3 ::= SEQUENCE { i INTEGER, j INTEGER, k INTEGER }
62 MySeqInt4 ::= SEQUENCE { i INTEGER, j INTEGER, k INTEGER, l INTEGER }
63 MySeqInt4opt ::= SEQUENCE { i INTEGER, j INTEGER, k INTEGER, l INTEGER OPTIONAL}
64 MySeqInt5opt ::= SEQUENCE { i INTEGER, j INTEGER, k INTEGER, l INTEGER, m INTEGER OPTIONAL}
65
66 MySeqReal ::= SEQUENCE { x REAL }
67 MySeqReal2 ::= SEQUENCE { x REAL, y REAL OPTIONAL}
68 MySeqStr ::= SEQUENCE { s VisibleString }
69 MySeqStr2 ::= SEQUENCE { s VisibleString, t VisibleString }
70 MySeqBitStr ::= SEQUENCE { b BIT STRING }
71 MySeqBitStr2 ::= SEQUENCE { a BIT STRING, b BIT STRING }
72 MySeqIntReal ::= SEQUENCE {i INTEGER, x REAL}
73 MySeqIntStr ::= SEQUENCE {i INTEGER, s MyCharstring }
74 MySeqIntBitStr ::= SEQUENCE {i INTEGER, b BIT STRING }
75 MySeqOctStr ::= SEQUENCE {o OCTET STRING }
76 MySeqOJKL ::= SEQUENCE { o OCTET STRING, j INTEGER, k INTEGER, l INTEGER }
77 MySeqIOKL ::= SEQUENCE { i INTEGER,o OCTET STRING, k INTEGER, l INTEGER }
78
79 MySeqISKL ::= SEQUENCE { i INTEGER, s MySeqInt4, k INTEGER, l INTEGER }
80
81 --===== sequence of sequence of sequence ====
82 MySeqIntSeqIntSeqInt2SeqReal2 ::=SEQUENCE {
83 i INTEGER OPTIONAL,
84 jkl MySeqIntSeqInt2,
85 xy MySeqReal2
86 }
87
88 MySeqIntSeqIntSeqInt2optoptSeqReal2 ::=SEQUENCE {
89 i INTEGER OPTIONAL,
90 jkl MySeqIntSeqInt2optopt,
91 xy MySeqReal2
92 }
93 --subtypes:
94
95 MySeqIntSeqReal2 ::= SEQUENCE {
96 i INTEGER OPTIONAL,
97 xy MySeqReal2
98 }
99
100 MySeqIntSeqIntSeqInt2 ::=SEQUENCE {
101 i INTEGER OPTIONAL,
102 jkl MySeqIntSeqInt2
103 }
104
105
106
107 MySeqSeqIntSeqInt2SeqReal2 ::=SEQUENCE {
108 jkl MySeqIntSeqInt2,
109 xy MySeqReal2
110 }
111
112 MySeq-SeqSeqIntSeqInt2SeqReal2-SeqSeqIntSeqInt2SeqReal2 ::= SEQUENCE {
113 s1 MySeqSeqIntSeqInt2SeqReal2,
114 s2 MySeqSeqIntSeqInt2SeqReal2
115 }
116
117 MySeq-SeqSeqIntSeqInt2optoptSeqReal2-SeqSeqIntSeqInt2optoptSeqReal2 ::= SEQUENCE {
118 s1 MySeqIntSeqIntSeqInt2optoptSeqReal2,
119 s2 MySeqIntSeqIntSeqInt2optoptSeqReal2
120 }
121
122 MySeqBasicTypes ::= SEQUENCE {
123 b BOOLEAN,
124 n NULL,
125 i INTEGER,
126 e MyEnum,
127 r REAL,
128 bs BIT STRING,
129 os OCTET STRING,
130 oi OBJECT IDENTIFIER,
131 roi RELATIVE-OID
132 }
133
134 MySeqEnum ::= SEQUENCE {
135 e MyEnum
136 }
137
138
139 -- 2. Sequence of (record of)
140 MySeqOfBool ::= SEQUENCE OF BOOLEAN
141 MySeqOfNull ::= SEQUENCE OF NULL
142 MySeqOfInt ::= SEQUENCE OF INTEGER
143 MySeqOfMyEnum ::= SEQUENCE OF MyEnum
144 MySeqOfEnum ::= SEQUENCE OF ENUMERATED { one(1), two(2), three(3) }
145 MySeqOfReal ::= SEQUENCE OF REAL
146 MySeqOfBitStr ::= SEQUENCE OF BIT STRING
147 MySeqOfOctStr ::= SEQUENCE OF OCTET STRING
148 MySeqOfObjId ::= SEQUENCE OF OBJECT IDENTIFIER
149
150 MySeqOfMyUnionBT ::= SEQUENCE OF MyUnionBasicTypes
151
152 MySeqOfSeqSeqIntSeqInt2SeqReal2 ::= SEQUENCE OF MySeqSeqIntSeqInt2SeqReal2
153 MySeqOfMySeqIntSeqIntSeqInt2optoptSeqReal2 ::= SEQUENCE OF MySeqIntSeqIntSeqInt2optoptSeqReal2
154
155 -- 3. Set
156
157 MySet3 ::= SET {
158 i [1] INTEGER ,
159 j [2] INTEGER OPTIONAL,
160 k [3] INTEGER OPTIONAL
161 }
162
163
164 MySetEmpty ::= SET { }
165 MySetBool ::= SET { b BOOLEAN }
166 MySetNull ::= SET { n NULL }
167 MySetInt ::= SET { i INTEGER }
168 MySetMyEnum ::= SET { e MyEnum }
169 MySetInt2 ::= SET { i [0] INTEGER, j [1] INTEGER }
170
171 MySetInt2opt ::= SET {
172 i [0] INTEGER OPTIONAL,
173 j [1] INTEGER OPTIONAL
174 }
175 MySetInt3opt ::= SET {
176 i [0] INTEGER,
177 j [1] INTEGER,
178 k [2] INTEGER OPTIONAL
179 }
180
181 MySetIntSeqInt2 ::= SET {
182 i INTEGER,
183 jk MySeqInt2
184 }
185
186 --tagged:
187 MySetIntSeqInt2T ::= SET {
188 i [0] INTEGER,
189 jk MySeqInt2
190 }
191
192 MySetIntSeqInt2opt ::= SET {
193 i INTEGER OPTIONAL,
194 jk MySeqInt2
195 }
196 --tagged:
197 MySetIntSeqInt2Topt ::= SET {
198 i [0] INTEGER OPTIONAL,
199 jk MySeqInt2
200 }
201
202 MySetIntSeqInt2optopt ::= SET {
203 i INTEGER OPTIONAL,
204 jk MySeqInt2opt
205 }
206
207 --tagged:
208 MySetIntSeqInt2Toptopt ::= SET {
209 i [0] INTEGER OPTIONAL,
210 jk MySeqInt2opt
211 }
212
213 MySetInt3 ::= SET { i [0] INTEGER OPTIONAL, j [1] INTEGER OPTIONAL, k [2] INTEGER OPTIONAL }
214 MySetInt4 ::= SET { i [0] INTEGER, j [1] INTEGER, k [2] INTEGER, l [3] INTEGER }
215 MySetInt4opt ::= SET { i [0] INTEGER OPTIONAL, j [1] INTEGER OPTIONAL, k [2] INTEGER OPTIONAL, l [3] INTEGER OPTIONAL}
216 MySetReal ::= SET { x REAL }
217 MySetReal2 ::= SET { x [0] REAL, y [1] REAL OPTIONAL}
218 MySetStr ::= SET { s VisibleString }
219 MySetStr2 ::= SET { s [0] VisibleString, t [1] VisibleString }
220 MySetBitStr ::= SET { b BIT STRING }
221 MySetBitStr2 ::= SET { a [0] BIT STRING, b [1] BIT STRING }
222 MySetIntReal ::= SET {i [0] INTEGER, x REAL}
223 MySetIntStr ::= SET {i [0] INTEGER, s MyCharstring }
224 MySetIntBitStr ::= SET {i [0] INTEGER, b BIT STRING }
225 MySetOctStr ::= SET {o OCTET STRING }
226 MySetOJKL ::= SET { o OCTET STRING, j [1] INTEGER, k [2] INTEGER, l [3] INTEGER }
227 MySetIOKL ::= SET { i [0] INTEGER, o OCTET STRING, k [2] INTEGER, l [3]INTEGER }
228
229 MySetISKL ::= SET { i [0] INTEGER, s MySeqInt4, k [2] INTEGER, l [3] INTEGER }
230 MySetISKLopt ::= SET { i [0] INTEGER OPTIONAL, s MySeqInt4opt OPTIONAL, k [2] INTEGER OPTIONAL, l [3] INTEGER OPTIONAL }
231
232 MySetIS2KLopt ::= SET { i [0] INTEGER OPTIONAL, s MySeqInt2 OPTIONAL, k [2] INTEGER OPTIONAL, l [3] INTEGER OPTIONAL }
233
234 MySetISOKL ::= SET { i [0] INTEGER, s MySeqInt4, o OCTET STRING, k [2] INTEGER, l [3] INTEGER }
235 MySetISOKLopt ::= SET { i [0] INTEGER OPTIONAL, s MySeqInt4opt OPTIONAL, o OCTET STRING OPTIONAL, k [2] INTEGER OPTIONAL, l [3] INTEGER OPTIONAL }
236
237 MySetIOSKL ::= SET { i [0] INTEGER, o OCTET STRING, s MySeqInt4, k [2] INTEGER, l [3] INTEGER }
238 MySetIOSKLopt ::= SET { i [0] INTEGER OPTIONAL, o OCTET STRING OPTIONAL, s MySeqInt4opt OPTIONAL, k [2] INTEGER OPTIONAL, l [3] INTEGER OPTIONAL }
239 --===== set of sequence of sequence ====
240 MySetIntSeqIntSeqInt2SeqReal2 ::=SET {
241 i INTEGER OPTIONAL,
242 jkl [0] MySeqIntSeqInt2,
243 xy [1] MySeqReal2
244 }
245
246 MySetIntSeqIntSeqInt2optoptSeqReal2 ::=SET {
247 i INTEGER OPTIONAL,
248 jkl [0] MySeqIntSeqInt2optopt,
249 xy MySeqReal2
250 }
251 --subtypes:
252
253 MySetIntSeqReal2 ::= SET {
254 i INTEGER OPTIONAL,
255 xy MySeqReal2
256 }
257
258 MySetIntSeqIntSeqInt2 ::=SET {
259 i INTEGER OPTIONAL,
260 jkl MySeqIntSeqInt2
261 }
262
263
264
265 MySetSeqIntSeqInt2SeqReal2 ::=SET {
266 jkl [0] MySeqIntSeqInt2,
267 xy [1] MySeqReal2
268 }
269
270 MySet-SeqSeqIntSeqInt2SeqReal2-SeqSeqIntSeqInt2SeqReal2 ::= SET {
271 s1 [0] MySeqSeqIntSeqInt2SeqReal2,
272 s2 [1] MySeqSeqIntSeqInt2SeqReal2
273 }
274
275 MySet-SeqSeqIntSeqInt2optoptSeqReal2-SeqSeqIntSeqInt2optoptSeqReal2 ::= SET {
276 s1 [0] MySeqIntSeqIntSeqInt2optoptSeqReal2,
277 s2 [1] MySeqIntSeqIntSeqInt2optoptSeqReal2
278 }
279
280 MySetBasicTypes ::= SET {
281 b BOOLEAN,
282 n NULL,
283 i INTEGER,
284 e MyEnum,
285 r REAL,
286 bs BIT STRING,
287 os OCTET STRING,
288 oi OBJECT IDENTIFIER,
289 roi RELATIVE-OID
290 }
291
292 MySetEnum ::= SET {
293 e MyEnum
294 }
295
296
297 -- 4. Set of
298
299 MySetOfBool ::= SET OF BOOLEAN
300 MySetOfNull ::= SET OF NULL
301 MySetOfInt ::= SET OF INTEGER
302 MySetOfMyEnum ::= SET OF MyEnum
303 MySetOfEnum ::= SET OF ENUMERATED { one(1), two(2), three(3) }
304 MySetOfReal ::= SET OF REAL
305 MySetOfBitStr ::= SET OF BIT STRING
306 MySetOfOctStr ::= SET OF OCTET STRING
307 MySetOfObjId ::= SET OF OBJECT IDENTIFIER
308
309 MySetOfMyUnionBT ::= SET OF MyUnionBasicTypes
310
311 MySetOfSeqSeqIntSeqInt2SeqReal2 ::= SEQUENCE OF MySeqSeqIntSeqInt2SeqReal2
312 MySetOfMySeqIntSeqIntSeqInt2optoptSeqReal2 ::= SEQUENCE OF MySeqIntSeqIntSeqInt2optoptSeqReal2
313
314 -- 5. Union
315
316
317
318 MyUnionBasicTypes ::= CHOICE {
319 b BOOLEAN,
320 n NULL,
321 i INTEGER,
322 e MyEnum,
323 r REAL,
324 bs BIT STRING,
325 os OCTET STRING,
326 oi OBJECT IDENTIFIER,
327 roi RELATIVE-OID
328 --s MySeqIntSeqReal2
329 -- sofi MySeqOfInt
330 }
331
332 MyUnionComplexTypes ::= CHOICE {
333 u MyUnionBasicTypes,
334 --s MySeqIntSeqReal2
335 sofreal MySeqOfReal
336 }
337
338 END
This page took 0.038551 seconds and 5 git commands to generate.