2 -- OK: Everything is fine
4 -- iso.org.dod.internet.private.enterprise (1.3.6.1.4.1)
5 -- .spelio.software.asn1c.test (9363.1.5.1)
11 { iso org(3) dod(6) internet(1) private(4) enterprise(1)
12 spelio(9363) software(1) asn1c(5) test(1) 14 1 }
15 IMPORTS Enumeration, beta, gamma FROM
17 { iso org(3) dod(6) internet(1) private(4) enterprise(1)
18 spelio(9363) software(1) asn1c(5) test(1) 14 2 };
20 -- external references
21 alpha Enumeration ::= beta
22 other Enumeration ::= gamma
25 member1 [1] ModuleTestResolver3.Enumeration OPTIONAL,
26 member2 [2] OtherModuleRenamed.Enumeration DEFAULT b
30 -- The following are for post-fix checking by the check_fixer.
31 -- It will be able to pick-up these values if the file is parseable,
32 -- even if it contains some semantic errors.
35 check-alpha INTEGER ::= 2
36 check-other INTEGER ::= 1
41 { iso org(3) dod(6) internet(1) private(4) enterprise(1)
42 spelio(9363) software(1) asn1c(5) test(1) 14 2 }
45 EXPORTS Enumeration, beta, gamma;
46 IMPORTS gamma, HiddenEnum FROM HiddenModule;
50 Enumeration ::= ENUMERATED { a(1), b(2) } -- the same type --
55 { iso org(3) dod(6) internet(1) private(4) enterprise(1)
56 spelio(9363) software(1) asn1c(5) test(1) 14 3 }
59 EXPORTS HiddenEnum, gamma;
60 IMPORTS Enumeration FROM ModuleTestResolver3;
62 HiddenEnum ::= ENUMERATED { a(1), b(2) }
64 gamma Enumeration ::= a