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.
Quote from Rec. ITU-T X.691 (02/2021) end of section 23: "NOTE – Version brackets in the definition of choice extension additions have no effect on how "ExtensionAdditionAlternatives" are encoded." In other words elements inside version brackets should not be grouped together for CHOICE (as opposed to how its done for SEQUENCE).
- Loading branch information
1 parent
a20d29a
commit 8baade5
Showing
4 changed files
with
548 additions
and
12 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
31 changes: 31 additions & 0 deletions
31
tests/tests-asn1c-compiler/165-choice-extended-group-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,31 @@ | ||
|
||
-- OK: Everything is fine | ||
|
||
-- iso.org.dod.internet.private.enterprise (1.3.6.1.4.1) | ||
-- .spelio.software.asn1c.test (9363.1.5.1) | ||
-- .165 | ||
|
||
ModuleTestExtensibleChoice | ||
{ iso org(3) dod(6) internet(1) private(4) enterprise(1) | ||
spelio(9363) software(1) asn1c(5) test(1) 165 } | ||
DEFINITIONS AUTOMATIC TAGS ::= | ||
BEGIN | ||
|
||
Choice ::= CHOICE { | ||
a INTEGER, | ||
..., | ||
b INTEGER, | ||
[[ | ||
c INTEGER | ||
]], | ||
[[ | ||
d INTEGER, | ||
e INTEGER | ||
]], | ||
[[ | ||
f INTEGER, | ||
g INTEGER | ||
]] | ||
} | ||
|
||
END |
Oops, something went wrong.