diff options
author | Lev Walkin <vlm@lionet.info> | 2004-09-05 10:37:55 +0000 |
---|---|---|
committer | Lev Walkin <vlm@lionet.info> | 2004-09-05 10:37:55 +0000 |
commit | bc00c1c7ef72e0eda65e103fc2491c68fe876c23 (patch) | |
tree | 2a287d53899336a1c49a833bd12e7367b0e8904e | |
parent | daa7d2b08c9a3fef9d911c5c705bd9b9b1bfff74 (diff) |
additional tests
-rw-r--r-- | tests/37-indirect-choice-OK.asn1 | 6 | ||||
-rw-r--r-- | tests/37-indirect-choice-OK.asn1.-EF | 28 |
2 files changed, 32 insertions, 2 deletions
diff --git a/tests/37-indirect-choice-OK.asn1 b/tests/37-indirect-choice-OK.asn1 index b0361c46..9204c1c0 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 @@ BEGIN 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 00000000..e975dde4 --- /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 |