diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2014-03-14 15:09:11 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2014-03-14 15:09:11 +0100 |
commit | d84d6567ecdeeb00b2536f3c16bc4f599df23e49 (patch) | |
tree | 7b304ed6ad8898161380ae695c74a87968bac734 /tests/choice.asn | |
parent | 05b093a2ef966fd02a2e93248194778b1caa2d55 (diff) | |
download | libtasn1-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.asn | 23 |
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 |