aboutsummaryrefslogtreecommitdiffstats
path: root/tests/44-choice-in-sequence-OK.asn1
diff options
context:
space:
mode:
authorLev Walkin <vlm@lionet.info>2004-06-06 07:21:11 +0000
committerLev Walkin <vlm@lionet.info>2004-06-06 07:21:11 +0000
commit2abf4d912aa2b5f48d33d102c0d0e7d8365676f6 (patch)
tree059cfe769c49e46f4c29d4d47705994d8c5608b2 /tests/44-choice-in-sequence-OK.asn1
parentcda6b8a4f543bc0b2b347135edd34ccf07a0094c (diff)
complex optionals, requires tag2map implementation for SEQUENCE
Diffstat (limited to 'tests/44-choice-in-sequence-OK.asn1')
-rw-r--r--tests/44-choice-in-sequence-OK.asn130
1 files changed, 30 insertions, 0 deletions
diff --git a/tests/44-choice-in-sequence-OK.asn1 b/tests/44-choice-in-sequence-OK.asn1
new file mode 100644
index 00000000..ef375f67
--- /dev/null
+++ b/tests/44-choice-in-sequence-OK.asn1
@@ -0,0 +1,30 @@
+
+-- OK: Everything is fine
+
+-- iso.org.dod.internet.private.enterprise (1.3.6.1.4.1)
+-- .spelio.software.asn1c.test (9363.1.5.1)
+-- .44
+
+ModuleChoiceInSequence
+ { iso org(3) dod(6) internet (1) private(4) enterprise(1)
+ spelio(9363) software(1) asn1c(5) test(1) 44 }
+ DEFINITIONS IMPLICIT TAGS ::=
+BEGIN
+
+ T ::= [PRIVATE 1] SEQUENCE {
+ a [PRIVATE 2] NULL,
+ b CHOICE {
+ c [PRIVATE 5] NULL,
+ d [PRIVATE 6] NULL,
+ e CHOICE {
+ f [PRIVATE 7] NULL,
+ g [PRIVATE 8] NULL
+ },
+ h [PRIVATE 9] CHOICE { -- EXPLICIT!
+ i [PRIVATE 1] NULL,
+ j [PRIVATE 2] NULL
+ }
+ }
+ }
+
+END