blob: 48fb0cc3cfcd3cf63a2b57ddb5b619da3b97fcd9 [file] [log] [blame]
Lev Walkinf15320b2004-06-03 03:38:44 +00001
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-- .14 1
7-- .14 2
8
9ModuleTestResolver2
10 { iso org(3) dod(6) internet(1) private(4) enterprise(1)
11 spelio(9363) software(1) asn1c(5) test(1) 14 1 }
12 DEFINITIONS ::=
13BEGIN
14 IMPORTS Enumeration, beta FROM
15 OtherModuleRenamed
16 { iso org(3) dod(6) internet(1) private(4) enterprise(1)
17 spelio(9363) software(1) asn1c(5) test(1) 14 2 };
18
19 -- external reference
20 alpha Enumeration ::= beta
21
22 --
23 -- The following are for post-fix checking by the check_fixer.
24 -- It will be able to pick-up these values if the file is parseable,
25 -- even if it contains some semantic errors.
26 --
27
28 check-alpha INTEGER ::= 2
29
30END
31
32ModuleTestResolver3
33 { iso org(3) dod(6) internet(1) private(4) enterprise(1)
34 spelio(9363) software(1) asn1c(5) test(1) 14 2 }
35 DEFINITIONS ::=
36BEGIN
37 EXPORTS Enumeration, beta ;
38
39 beta HiddenEnum ::= b
40
41 HiddenEnum ::= ENUMERATED { a(1), b(2) }
42
43 Enumeration ::= ENUMERATED { a(1), b(2) } -- the same type --
44
45END