NativeEnumerated.c vars NULL init and check
[com/asn1c.git] / tests / tests-asn1c-compiler / 84-param-tags-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 -- .84 1
7 -- .84 2
8
9 ModuleTestParameterizationTags1
10         { iso org(3) dod(6) internet(1) private(4) enterprise(1)
11                 spelio(9363) software(1) asn1c(5) test(1) 84 1 }
12         DEFINITIONS ::=
13 BEGIN
14
15         TestType {Parameter} ::= SEQUENCE { 
16                 common  Parameter       DEFAULT 0
17         } 
18
19         TestChoice ::= CHOICE { 
20                 type1 TestType {INTEGER (1..10)},
21                 type2 [0] IMPLICIT TestType {BOOLEAN} 
22         } 
23
24 END
25
26 ModuleTestParameterizationTagsAuto2
27         { iso org(3) dod(6) internet(1) private(4) enterprise(1)
28                 spelio(9363) software(1) asn1c(5) test(1) 84 2 }
29         DEFINITIONS AUTOMATIC TAGS ::=
30 BEGIN
31
32         AutoType {Parameter} ::= SEQUENCE { 
33                 common Parameter (0)
34         } 
35
36         AutoChoice ::= CHOICE { 
37                 type1 AutoType {INTEGER (0..1)},
38                 type2 AutoType {BOOLEAN}
39         } 
40
41 END