diff --git a/tests/61-any-1-SE.asn1 b/tests/61-any-1-SE.asn1 new file mode 100644 index 00000000..aa3cec36 --- /dev/null +++ b/tests/61-any-1-SE.asn1 @@ -0,0 +1,19 @@ + +-- SE: Semantic error + +-- iso.org.dod.internet.private.enterprise (1.3.6.1.4.1) +-- .spelio.software.asn1c.test (9363.1.5.1) +-- .61 + +ModuleTestBadANY1 + { iso org(3) dod(6) internet(1) private(4) enterprise(1) + spelio(9363) software(1) asn1c(5) test(1) 61 } + DEFINITIONS ::= +BEGIN + + T ::= SEQUENCE { + i1 INTEGER OPTIONAL, + any ANY + } + +END diff --git a/tests/62-any-OK.asn1 b/tests/62-any-OK.asn1 new file mode 100644 index 00000000..5b58562b --- /dev/null +++ b/tests/62-any-OK.asn1 @@ -0,0 +1,19 @@ + +-- OK: Everything is fine + +-- iso.org.dod.internet.private.enterprise (1.3.6.1.4.1) +-- .spelio.software.asn1c.test (9363.1.5.1) +-- .62 + +ModuleTestANYSyntax + { iso org(3) dod(6) internet(1) private(4) enterprise(1) + spelio(9363) software(1) asn1c(5) test(1) 62 } + DEFINITIONS IMPLICIT TAGS ::= +BEGIN + + T ::= SEQUENCE { + i INTEGER, + any [1] ANY -- Converted into [1] EXPLICIT ANY + } + +END diff --git a/tests/62-any-OK.asn1.-EF b/tests/62-any-OK.asn1.-EF new file mode 100644 index 00000000..eb927092 --- /dev/null +++ b/tests/62-any-OK.asn1.-EF @@ -0,0 +1,13 @@ + +ModuleTestANYSyntax {iso org(3) dod(6) internet(1) private(4) + enterprise(1) spelio(9363) software(1) asn1c(5) test(1) + 62 } +DEFINITIONS IMPLICIT TAGS ::= +BEGIN + +T ::= SEQUENCE { + i INTEGER, + any [1] EXPLICIT ANY +} + +END diff --git a/tests/63-any-2-SE.asn1 b/tests/63-any-2-SE.asn1 new file mode 100644 index 00000000..ca747cf5 --- /dev/null +++ b/tests/63-any-2-SE.asn1 @@ -0,0 +1,18 @@ + +-- SE: Semantic error + +-- iso.org.dod.internet.private.enterprise (1.3.6.1.4.1) +-- .spelio.software.asn1c.test (9363.1.5.1) +-- .63 + +ModuleTestBadANY2 + { iso org(3) dod(6) internet(1) private(4) enterprise(1) + spelio(9363) software(1) asn1c(5) test(1) 62 } + DEFINITIONS ::= +BEGIN + + T ::= SEQUENCE { + any [1] IMPLICIT ANY + } + +END