~ubuntu-branches/ubuntu/dapper/asn1c/dapper

« back to all changes in this revision

Viewing changes to tests/62-any-OK.asn1

  • Committer: Bazaar Package Importer
  • Author(s): W. Borgert
  • Date: 2005-05-28 12:36:42 UTC
  • Revision ID: james.westby@ubuntu.com-20050528123642-3h6kstws5u0xcovl
Tags: upstream-0.9.14
ImportĀ upstreamĀ versionĀ 0.9.14

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
-- OK: Everything is fine
 
3
 
 
4
-- iso.org.dod.internet.private.enterprise (1.3.6.1.4.1)
 
5
-- .spelio.software.asn1c.test (9363.1.5.1)
 
6
-- .62
 
7
 
 
8
ModuleTestANYSyntax
 
9
        { iso org(3) dod(6) internet(1) private(4) enterprise(1)
 
10
                spelio(9363) software(1) asn1c(5) test(1) 62 }
 
11
        DEFINITIONS IMPLICIT TAGS ::=
 
12
BEGIN
 
13
 
 
14
        T ::= CHOICE {
 
15
                s1 T1-ext,
 
16
                s2 T2,
 
17
                s3 T3,
 
18
                s4 T4
 
19
        }
 
20
 
 
21
        T1-ext ::= SEQUENCE {
 
22
                i       INTEGER OPTIONAL,
 
23
                any     [1] ANY,        -- Converted into [1] EXPLICIT ANY
 
24
                ...
 
25
        }
 
26
 
 
27
        T2 ::= [16] SEQUENCE {
 
28
                m1  [0] NumericString,
 
29
                m2  [1] BOOLEAN,
 
30
                m3  [3] SEQUENCE OF NumericString,
 
31
                o4  [4] BOOLEAN OPTIONAL,
 
32
                o5  [5] BOOLEAN OPTIONAL,
 
33
                o6  [6] BOOLEAN OPTIONAL
 
34
        }
 
35
 
 
36
        T3 ::= SET {
 
37
                m1  [0] NumericString,
 
38
                m2  [1] BOOLEAN
 
39
        }
 
40
 
 
41
        T4 ::= [53] CHOICE {
 
42
                m1  [1] IMPLICIT OCTET STRING
 
43
        }
 
44
 
 
45
END