aboutsummaryrefslogtreecommitdiffstats
path: root/lib/asn1/test/asn1_SUITE_data/SeqExtension.asn1
blob: 5fda19303a35f93a3635070153bdf3eae6337111 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
SeqExtension DEFINITIONS IMPLICIT TAGS ::= 

BEGIN

IMPORTS XSeqExt1, XSeqExt2 FROM External;


SeqExt1 ::= SEQUENCE 
{
  ...
}

SeqExt2 ::= SEQUENCE 
{
  bool  BOOLEAN,
  int  INTEGER,
  ...
}

SeqExt3 ::= SEQUENCE 
{
  ...,
  bool  BOOLEAN,
  int  INTEGER
}

SeqExt4 ::= SEQUENCE 
{
  bool  BOOLEAN,
  ...,
  int  INTEGER
}

SeqExt5 ::= SEQUENCE
{
  ...,
  [[ name OCTET STRING (SIZE (1..8)),
     shoesize INTEGER ]]
}

SeqExt6 ::= SEQUENCE
{
  -- The spaces between the ellipsis and the comma will prevent them
  -- from being removed.
  ...     ,
  [[ i1 [100] INTEGER, i2 [101] INTEGER, i3 [102] INTEGER ]],
  [[ i4 [104] INTEGER, i5 [105] INTEGER ]],
  [[ i6 [106] INTEGER, i7 [107] INTEGER ]]
}

SeqExt1X ::= XSeqExt1 
SeqExt2X ::= XSeqExt2 

SuperSeq ::= SEQUENCE
{
  s1 SeqExt1,
  s2 SeqExt2,
  s3 SeqExt3,
  s4 SeqExt4,
  s5 SeqExt5,
  s6 SeqExt6,
  i INTEGER
}

END