NativeEnumerated.c vars NULL init and check
[com/asn1c.git] / tests / tests-asn1c-compiler / 23-bits-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 -- .23
7
8 ModuleTestBitString
9         { iso org(3) dod(6) internet(1) private(4) enterprise(1)
10                 spelio(9363) software(1) asn1c(5) test(1) 23 }
11         DEFINITIONS AUTOMATIC TAGS ::=
12 BEGIN
13
14         v28 INTEGER ::= 28
15
16         BS1     ::= BIT STRING { first(0), third(2), twenty-eight(v28) }
17
18         one-zero-one BS1 ::= { first, third }   -- Equivalent to '101'B
19
20         one0one BS1 ::= '1010000'B              -- Equivalent to '101'B
21
22         empty BS1 ::= { }       -- Equivalent to ''B
23
24 END