Commit | Line | Data |
---|---|---|
970ed795 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 | --///////////////////////////////////////////////////////////////////////////// | |
8 | EmptyUnion DEFINITIONS | |
9 | AUTOMATIC TAGS ::= | |
10 | ||
11 | BEGIN | |
12 | ||
13 | IMPORTS ; | |
14 | ||
15 | /* Regression test for TR 936. Just get it to compile. | |
16 | ||
17 | Empty unions were not handled. These are not allowed for ordinary | |
18 | union/CHOICE types, but can be caused by open type. | |
19 | ||
20 | */ | |
21 | ||
22 | MAP-EXTENSION-V2 ::= CLASS { | |
23 | &ExtensionType OPTIONAL, | |
24 | &extensionId OBJECT IDENTIFIER } | |
25 | -- The length of the Object Identifier shall not exceed 16 octets and the | |
26 | -- number of components of the Object Identifier shall not exceed 16 | |
27 | ||
28 | ||
29 | ||
30 | ExtensionContainer-v2 ::= SEQUENCE { | |
31 | privateExtensionList [0]PrivateExtensionList-v2 OPTIONAL, | |
32 | pcs-Extensions [1]PCS-Extensions-v2 OPTIONAL, | |
33 | ...} | |
34 | ||
35 | ||
36 | PrivateExtensionList-v2 ::= SEQUENCE SIZE (1..maxNumOfPrivateExtensions-v2) OF | |
37 | PrivateExtension-v2 | |
38 | ||
39 | PrivateExtension-v2 ::= SEQUENCE { | |
40 | extId MAP-EXTENSION-V2.&extensionId | |
41 | ({ExtensionSet-v2}), | |
42 | extType MAP-EXTENSION-V2.&ExtensionType | |
43 | ({ExtensionSet-v2}{@extId}) OPTIONAL} | |
44 | ||
45 | maxNumOfPrivateExtensions-v2 INTEGER ::= 10 | |
46 | ||
47 | ||
48 | extensionIE-v2-1 MAP-EXTENSION-V2 ::= { &extensionId { iso standard 8571 } } | |
49 | ||
50 | extensionIE-v2-2 MAP-EXTENSION-V2 ::= { &ExtensionType INTEGER, &extensionId { iso standard 8572 } } | |
51 | ||
52 | ||
53 | ExtensionSet-v2 MAP-EXTENSION-V2 ::= | |
54 | { extensionIE-v2-1 | | |
55 | extensionIE-v2-2, | |
56 | ... | |
57 | -- ExtensionSet is the set of all defined private extensions | |
58 | } | |
59 | ||
60 | -- Unsupported private extensions shall be discarded if received. | |
61 | ||
62 | ||
63 | PCS-Extensions-v2 ::= SEQUENCE { | |
64 | ...} | |
65 | ||
66 | ||
67 | ||
68 | pike PrivateExtension-v2 ::= { | |
69 | extId { iso standard 8571 } | |
70 | } | |
71 | ||
72 | pike2 PrivateExtension-v2 ::= { | |
73 | extId { iso standard 8572 }, | |
74 | extType iNTEGER : 3 -- OSS asn1c calls this member "INTEGER" | |
75 | } | |
76 | ||
77 | da ExtensionContainer-v2 ::= { | |
78 | privateExtensionList { pike, pike2 } | |
79 | } | |
80 | ||
81 | END |