NativeEnumerated.c vars NULL init and check
[com/asn1c.git] / tests / tests-asn1c-compiler / 43-recursion-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 -- .43
7
8 ModuleRecursion
9         { iso org(3) dod(6) internet (1) private(4) enterprise(1)
10                 spelio(9363) software(1) asn1c(5) test(1) 43 }
11         DEFINITIONS ::=
12 BEGIN
13
14         Test-structure-1 ::= SEQUENCE {
15                 t-member1 SET OF Test-structure-1,
16                 t-member2 SEQUENCE OF Test-structure-1,
17                 t-member3 Test-structure-1 OPTIONAL,
18                 t-member4 INTEGER
19         }
20
21         Choice-1 ::= CHOICE {
22                 and   [1] Choice-1,
23                 or    [2] IMPLICIT SET OF Choice-1,
24                 not   [3] Choice-1,
25                 other [4] INTEGER
26         }
27
28         Test-structure-2 ::= SET { m1 Test-structure-3 OPTIONAL }
29         Test-structure-3 ::= SET { m1 Test-structure-2 OPTIONAL }
30
31 END