Commit 4d8f18a6 authored by Lev Walkin's avatar Lev Walkin

tests for ANY type

parent b656f1a3
-- 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
-- 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
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
-- 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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment