summaryrefslogtreecommitdiff
path: root/tests/choice.asn
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2014-03-14 15:09:11 +0100
committerNikos Mavrogiannopoulos <nmav@redhat.com>2014-03-14 15:09:11 +0100
commitd84d6567ecdeeb00b2536f3c16bc4f599df23e49 (patch)
tree7b304ed6ad8898161380ae695c74a87968bac734 /tests/choice.asn
parent05b093a2ef966fd02a2e93248194778b1caa2d55 (diff)
downloadlibtasn1-d84d6567ecdeeb00b2536f3c16bc4f599df23e49.tar.gz
libtasn1-d84d6567ecdeeb00b2536f3c16bc4f599df23e49.tar.bz2
libtasn1-d84d6567ecdeeb00b2536f3c16bc4f599df23e49.zip
Added self-check for recursive choices.
Diffstat (limited to 'tests/choice.asn')
-rw-r--r--tests/choice.asn23
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/choice.asn b/tests/choice.asn
new file mode 100644
index 0000000..b309204
--- /dev/null
+++ b/tests/choice.asn
@@ -0,0 +1,23 @@
+TEST {}
+DEFINITIONS IMPLICIT TAGS ::=
+BEGIN
+
+Choice2 ::= CHOICE {
+ oct1 OCTET STRING,
+ int1 [3] INTEGER,
+ oct2 OCTET STRING
+}
+
+Choice1 ::= CHOICE {
+ int4 [0] INTEGER,
+ choice2 Choice2,
+ int5 [1] INTEGER
+}
+
+Choice0 ::= CHOICE {
+ int6 [0] INTEGER,
+ choice1 Choice1,
+ int7 [1] INTEGER
+}
+
+END