Sync with 5.4.0
[deliverable/titan.core.git] / regression_test / ASN1 / codeGeneration2 / Test76.asn
CommitLineData
970ed795 1--/////////////////////////////////////////////////////////////////////////////
3abe9331 2-- Copyright (c) 2000-2015 Ericsson Telecom AB
970ed795
EL
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--/////////////////////////////////////////////////////////////////////////////
8Test76
9
10DEFINITIONS
11
12AUTOMATIC TAGS
13
14::=
15
16BEGIN
17
18IMPORTS ; -- nothing
19
20MySequenceType1 ::= SEQUENCE {
21 field1 INTEGER,
22 field2 BOOLEAN,
23 field3 NULL,
24 field4 OCTET STRING,
25 field5 BIT STRING,
26 field6 ENUMERATED {a,b,c},
27 field7 REAL
28 }
29
30MyChoiceType1 ::= CHOICE
31 {
32 field1 INTEGER,
33 field2 BOOLEAN,
34 field3 NULL,
35 field4 OCTET STRING,
36 field5 BIT STRING,
37 field6 ENUMERATED {a,b,c},
38 field7 REAL,
39 field8 MySequenceType1
40 }
41
42MySetType1 ::= SET {
43 field1 INTEGER,
44 field2 BOOLEAN,
45 field3 NULL,
46 field4 OCTET STRING,
47 field5 BIT STRING,
48 field6 ENUMERATED {a,b,c},
49 field7 REAL,
50 field8 MySequenceType1
51 }
52
53MySetOfType1 ::= SET OF INTEGER
54
55MySetOfType2 ::= SET OF MySequenceType1
56
57MySetOfType3 ::= SET OF MyChoiceType1
58
59MySetOfType4 ::= SET OF MySetType1
60
61
62mySetOfValue1 MySetOfType1 ::= {1,0,-1,1000, -1000}
63
64mySetOfValue2 MySetOfType2 ::=
65{
66 {
67 field1 444,
68 field2 TRUE,
69 field3 NULL,
70 field4 'FFFF'H,
71 field5 '00'B,
72 field6 a,
73 field7 5.2 -- {mantissa 314159,base 10, exponent -10}
74
75 },
76 {
77 field1 123,
78 field2 FALSE,
79 field3 NULL,
80 field4 'ABCD'H,
81 field5 '010101010'B,
82 field6 b,
83 field7 5.2 -- {mantissa 9,base 10, exponent 1}
84
85 },
86 {
87 field1 340,
88 field2 FALSE,
89 field3 NULL,
90 field4 '1234'H,
91 field5 '110000'B,
92 field6 c,
93 field7 5.2 -- {mantissa 4,base 10, exponent -1}
94
95 }
96
97
98
99}
100
101
102mySetOfValue3 MySetOfType3 ::=
103{
104
105 field1 : 762,
106 field5 : '01010'B,
107 field2 : TRUE,
108 field4 : 'FFFF'H,
109 field7 : 5.2, -- {mantissa 2,base 10, exponent -1},
110 field8 : {
111 field1 -945,
112 field2 FALSE,
113 field3 NULL,
114 field4 '34AB'H,
115 field5 '1'B,
116 field6 c,
117 field7 5.2 -- {mantissa 3,base 10, exponent -1}
118 }
119}
120
121mySetOfValue4 MySetOfType4 ::=
122{
123 {
124 field1 3,
125 field2 TRUE,
126 field3 NULL,
127 field4 '0'B,
128 field5 '01'B,
129 field6 a,
130 field7 0,
131 field8
132 {
133 field1 -9,
134 field2 FALSE,
135 field3 NULL,
136 field4 'AB'H,
137 field5 '0'B,
138 field6 c,
139 field7 5.2 -- {mantissa 3,base 2, exponent -1}
140 }
141 }
142}
143END
This page took 0.029199 seconds and 5 git commands to generate.