mirror of https://gerrit.osmocom.org/asn1c
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:
parent
2d75d9e585
commit
c5f3c2ecd7
|
@ -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
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
Loading…
Reference in New Issue