blob: 4b0df810c5caff5616d882169e4296110d779bf4 [file] [log] [blame]
vlmfa67ddc2004-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
vlmc4dadcd2004-09-15 11:53:04 +00008-- .14 3
vlmfa67ddc2004-06-03 03:38:44 +00009
10ModuleTestResolver2
11 { iso org(3) dod(6) internet(1) private(4) enterprise(1)
12 spelio(9363) software(1) asn1c(5) test(1) 14 1 }
13 DEFINITIONS ::=
14BEGIN
vlmc4dadcd2004-09-15 11:53:04 +000015 IMPORTS Enumeration, beta, gamma FROM
vlmfa67ddc2004-06-03 03:38:44 +000016 OtherModuleRenamed
17 { iso org(3) dod(6) internet(1) private(4) enterprise(1)
18 spelio(9363) software(1) asn1c(5) test(1) 14 2 };
19
vlmc4dadcd2004-09-15 11:53:04 +000020 -- external references
vlmfa67ddc2004-06-03 03:38:44 +000021 alpha Enumeration ::= beta
vlmc4dadcd2004-09-15 11:53:04 +000022 other Enumeration ::= gamma
23
24 Struct ::= SEQUENCE {
25 member1 [1] ModuleTestResolver3.Enumeration OPTIONAL,
26 member2 [2] OtherModuleRenamed.Enumeration DEFAULT b
27 }
vlmfa67ddc2004-06-03 03:38:44 +000028
29 --
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.
33 --
34
35 check-alpha INTEGER ::= 2
vlmc4dadcd2004-09-15 11:53:04 +000036 check-other INTEGER ::= 1
vlmfa67ddc2004-06-03 03:38:44 +000037
38END
39
40ModuleTestResolver3
41 { iso org(3) dod(6) internet(1) private(4) enterprise(1)
42 spelio(9363) software(1) asn1c(5) test(1) 14 2 }
43 DEFINITIONS ::=
44BEGIN
vlmc4dadcd2004-09-15 11:53:04 +000045 EXPORTS Enumeration, beta, gamma;
46 IMPORTS gamma, HiddenEnum FROM HiddenModule;
vlmfa67ddc2004-06-03 03:38:44 +000047
48 beta HiddenEnum ::= b
49
vlmc4dadcd2004-09-15 11:53:04 +000050 Enumeration ::= ENUMERATED { a(1), b(2) } -- the same type --
51
52END
53
54HiddenModule
55 { iso org(3) dod(6) internet(1) private(4) enterprise(1)
56 spelio(9363) software(1) asn1c(5) test(1) 14 3 }
57 DEFINITIONS ::=
58BEGIN
59 EXPORTS HiddenEnum, gamma;
60 IMPORTS Enumeration FROM ModuleTestResolver3;
61
vlmfa67ddc2004-06-03 03:38:44 +000062 HiddenEnum ::= ENUMERATED { a(1), b(2) }
63
vlmc4dadcd2004-09-15 11:53:04 +000064 gamma Enumeration ::= a
vlmfa67ddc2004-06-03 03:38:44 +000065
66END