b4334ddbbb007d2947eabe68a14eca4298a61b3f
[com/asn1c.git] / tests / tests-asn1c-compiler / 134-per-long-OK.asn1
1
2 -- OK: Everything is fine
3 -- Also see .127 for narrower integer types.
4
5 -- iso.org.dod.internet.private.enterprise (1.3.6.1.4.1)
6 -- .spelio.software.asn1c.test (9363.1.5.1)
7 -- .134
8
9 ModulePERLong
10         { iso org(3) dod(6) internet (1) private(4) enterprise(1)
11                 spelio(9363) software(1) asn1c(5) test(1) 134 }
12         DEFINITIONS AUTOMATIC TAGS ::=
13 BEGIN
14
15     -- Supported only on 64-bit platforms.
16         T ::= SEQUENCE {
17                 unsigned33  INTEGER (0..5000000000),    -- range 33 bits
18                 unsigned42  INTEGER (0..3153600000000), -- range 42 bits
19                 signed33    INTEGER (-4000000000..4000000000), -- 33 bits
20                 signed33ext INTEGER (-4000000000..4000000000,...)
21         }
22
23 END