Support extension markers in ENUMERATED.
[asn2quickder] / testdata / extension_marker.asn
1 TEST DEFINITIONS ::=
2 BEGIN
3
4 ChoiceType ::= CHOICE
5 {
6   required1 INTEGER,
7   required2 UTF8String,
8   ...
9 }
10
11 SequenceType ::= SEQUENCE
12 {
13   required1 INTEGER,
14   required2 UTF8String,
15   ...
16 }
17
18 -- I'm not sure if this is valid syntax, but I expect not.
19 -- The extension marker is likely only acceptable as the last
20 -- choice/sequence component.
21 PotentiallyInvalid ::= SEQUENCE
22 {
23   required1 INTEGER,
24   ...,
25   required2 UTF8String
26 }
27
28 EnumType1 ::= ENUMERATED
29 {
30   one (1),
31   ...
32 }
33
34 EnumType2 ::= ENUMERATED
35 {
36   two (2),
37   ...,
38   three (3)
39 }
40
41 EnumInSequence ::= SEQUENCE
42 {
43   -- Check also the inline form of an enum
44   foo ENUMERATED { zero(0), ..., one(1) }
45 }
46
47 END