diff options
Diffstat (limited to 'tests/31-set-of-OK.asn1')
-rw-r--r-- | tests/31-set-of-OK.asn1 | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/31-set-of-OK.asn1 b/tests/31-set-of-OK.asn1 index cd108ba0..6f36c017 100644 --- a/tests/31-set-of-OK.asn1 +++ b/tests/31-set-of-OK.asn1 @@ -18,4 +18,17 @@ BEGIN width INTEGER } + -- The following clause tests OPTIONAL. + Stuff ::= SET { + trees [0] SET OF Forest OPTIONAL, + anything [1] SET OF + SEQUENCE { + cup-of-coffee BIT STRING, + ... + } OPTIONAL + -- The above OPTIONAL applies to the "anything" + -- member of the outer CHOICE, + -- not to the SET OF's embedded SEQUENCE! + } + END |