fcd80fc139f56124301e48b7cd18a76b09d8523f
[com/asn1c.git] / tests / tests-asn1c-compiler / 135-oer-short-OK.asn1
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 -- .135
7
8 ModuleOERShort
9         { iso org(3) dod(6) internet (1) private(4) enterprise(1)
10                 spelio(9363) software(1) asn1c(5) test(1) 135 }
11         DEFINITIONS IMPLICIT TAGS ::=
12 BEGIN
13
14     -- Supported only on 64-bit platforms.
15     T ::= SEQUENCE {
16         unsigned8         [0] INTEGER (0..255),       -- OER 1 byte
17         unsigned16       [1]  INTEGER (0..65535),     -- OER 2 bytes
18         unsigned16stack [2] INTEGER (0..32767)(0..255), --  OER 1 byte
19         unsigned16stack-ext [15] INTEGER (0..32767)(0..255,...), -- OER 2 bytes
20         ...,
21         signed8           [10] INTEGER (-128..127) DEFAULT 3, -- OER 1 byte
22         signed16          [11] INTEGER (-32768..32767),    -- OER 2 bytes
23         signed16stack     [12] INTEGER (-32768..32767)(-128..127), -- OER 1 byte
24         signed16stack-ext [5] INTEGER (-32768..32767)(-128..127,...), -- OER 2 b
25         signed32          [7] INTEGER (-2000000000..2000000000), -- OER 4 bytes
26         ...,
27         minmax            [6] INTEGER (MIN..MAX) OPTIONAL
28     }
29
30 END