tests for ANY type

git-svn-id: https://asn1c.svn.sourceforge.net/svnroot/asn1c/trunk@264 59561ff5-6e30-0410-9f3c-9617f08c8826
This commit is contained in:
vlm 2004-09-05 10:44:23 +00:00
parent 2d75d9e585
commit c5f3c2ecd7
4 changed files with 69 additions and 0 deletions

19
tests/61-any-1-SE.asn1 Normal file
View File

@ -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

19
tests/62-any-OK.asn1 Normal file
View File

@ -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

13
tests/62-any-OK.asn1.-EF Normal file
View File

@ -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

18
tests/63-any-2-SE.asn1 Normal file
View File

@ -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