NativeEnumerated.c vars NULL init and check
[com/asn1c.git] / tests / tests-asn1c-compiler / 73-circular-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 -- .73
7
8 ModuleTestCircularReferences
9         { iso org(3) dod(6) internet(1) private(4) enterprise(1)
10                 spelio(9363) software(1) asn1c(5) test(1) 73 }
11         DEFINITIONS ::=
12 BEGIN
13
14         Type ::= SEQUENCE {
15                 data SEQUENCE OF EpytRef
16         }
17
18         EpytRef ::= Epyt
19
20         Epyt ::= SEQUENCE {
21                 stype   SET OF Type,
22                 type    Type OPTIONAL,
23                 ypet    Ypet OPTIONAL
24         }
25
26         Ypet ::= SET {
27                 epyt    Epyt,
28                 plain   INTEGER DEFAULT 7,
29                 senums  SET OF EnumType,
30                 patest1 [1] IA5String (FROM("A".."Z")),
31                 patest2 [2] IA5String (FROM("a".."z"))
32         }
33
34         EnumType ::= ENUMERATED { one, two }
35
36 END