forked from vlm/asn1c
-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix WITH DESCENDANTS; tests for WITH DESCENDANTS
- Loading branch information
1 parent
d3faf7f
commit 6d97ce9
Showing
6 changed files
with
51 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
tests/tests-asn1c-compiler/163-imports-with-descendants-OK.asn1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
|
||
-- OK: Everything is fine | ||
|
||
-- iso.org.dod.internet.private.enterprise (1.3.6.1.4.1) | ||
-- .spelio.software.asn1c.test (9363.1.5.1) | ||
-- .121 | ||
|
||
ModuleIMPORTS | ||
{ iso org(3) dod(6) internet (1) private(4) enterprise(1) | ||
spelio(9363) software(1) asn1c(5) test(1) 161 } | ||
DEFINITIONS AUTOMATIC TAGS ::= | ||
BEGIN | ||
|
||
IMPORTS ImportedType | ||
FROM ImportedModule1 | ||
{ iso org(3) dod(6) internet (1) private(4) enterprise(1) | ||
spelio(9363) software(1) asn1c(5) test(1) 163 major-version-1(1) } | ||
WITH DESCENDANTS | ||
; | ||
|
||
Type ::= ImportedType | ||
|
||
END | ||
|
||
|
||
ImportedModule1 | ||
{ iso org(3) dod(6) internet (1) private(4) enterprise(1) | ||
spelio(9363) software(1) asn1c(5) test(1) 163 major-version-1(1) super-minor-version(1) super-minor-version(1)} | ||
DEFINITIONS AUTOMATIC TAGS ::= | ||
BEGIN | ||
|
||
IMPORTS -- nothing --; | ||
|
||
ImportedType ::= INTEGER | ||
|
||
END |