additional tests
git-svn-id: https://asn1c.svn.sourceforge.net/svnroot/asn1c/trunk@248 59561ff5-6e30-0410-9f3c-9617f08c8826
diff --git a/tests/37-indirect-choice-OK.asn1 b/tests/37-indirect-choice-OK.asn1
index b0361c4..9204c1c 100644
--- a/tests/37-indirect-choice-OK.asn1
+++ b/tests/37-indirect-choice-OK.asn1
@@ -8,14 +8,14 @@
ModuleTestIndirectChoiceFine
{ iso org(3) dod(6) internet(1) private(4) enterprise(1)
spelio(9363) software(1) asn1c(5) test(1) 37 }
- DEFINITIONS ::=
+ DEFINITIONS IMPLICIT TAGS ::=
BEGIN
T ::= CHOICE {
t-a INTEGER,
t-b OCTET STRING,
t-c [1] Choice1,
- t-d Choice2
+ t-d [3] Choice2
}
Choice1 ::= CHOICE {
@@ -29,4 +29,6 @@
c-d [3] Choice1
}
+ Choice3 ::= [3] EXPLICIT Choice2 -- tags [3] [2]
+
END
diff --git a/tests/37-indirect-choice-OK.asn1.-EF b/tests/37-indirect-choice-OK.asn1.-EF
new file mode 100644
index 0000000..e975dde
--- /dev/null
+++ b/tests/37-indirect-choice-OK.asn1.-EF
@@ -0,0 +1,28 @@
+
+ModuleTestIndirectChoiceFine {iso org(3) dod(6) internet(1) private(4)
+ enterprise(1) spelio(9363) software(1) asn1c(5) test(1)
+ 37 }
+DEFINITIONS IMPLICIT TAGS ::=
+BEGIN
+
+T ::= CHOICE {
+ t-a INTEGER,
+ t-b OCTET STRING,
+ t-c [1] EXPLICIT Choice1,
+ t-d [3] IMPLICIT Choice2
+}
+
+Choice1 ::= CHOICE {
+ c-a OCTET STRING,
+ c-b INTEGER
+}
+
+Choice2 ::= [2] EXPLICIT CHOICE {
+ c-a OCTET STRING,
+ c-b INTEGER,
+ c-d [3] EXPLICIT Choice1
+}
+
+Choice3 ::= [3] EXPLICIT Choice2
+
+END