Skip to content
Snippets Groups Projects
Commit fc0d66f0 authored by Lev Walkin's avatar Lev Walkin
Browse files

COMPONENTS OF support testing

parent 6c9e0719
No related branches found
No related tags found
No related merge requests found
-- OK: Everything is fine
-- iso.org.dod.internet.private.enterprise (1.3.6.1.4.1)
-- .spelio.software.asn1c.test (9363.1.5.1)
-- .55
ModuleTestComponentsOf
{ iso org(3) dod(6) internet(1) private(4) enterprise(1)
spelio(9363) software(1) asn1c(5) test(1) 55 }
DEFINITIONS AUTOMATIC TAGS ::=
BEGIN
OneType ::= SEQUENCE {
one-1 INTEGER,
one-2 [1] BOOLEAN,
one-3 SEQUENCE {
alpha INTEGER,
beta INTEGER,
...
},
...,
ignored-in-SecondType INTEGER,
...,
one-4 INTEGER
}
SecondType ::= SEQUENCE {
a IA5String,
COMPONENTS OF OneType,
b UniversalString
}
END
ModuleTestComponentsOf {iso(-1) org(3) dod(6) internet(1) private(4)
enterprise(1) spelio(9363) software(1) asn1c(5) test(1)
55 }
DEFINITIONS AUTOMATIC TAGS ::=
BEGIN
OneType ::= SEQUENCE {
one-1 INTEGER,
one-2 [1] EXPLICIT BOOLEAN,
one-3 SEQUENCE {
alpha [0] IMPLICIT INTEGER,
beta [1] IMPLICIT INTEGER,
...
},
one-4 INTEGER,
...,
ignored-in-SecondType INTEGER
}
SecondType ::= SEQUENCE {
a [0] IMPLICIT IA5String,
one-1 [1] IMPLICIT INTEGER,
one-2 [2] IMPLICIT BOOLEAN,
one-3 [3] IMPLICIT SEQUENCE {
alpha [0] IMPLICIT INTEGER,
beta [1] IMPLICIT INTEGER
},
one-4 [4] IMPLICIT INTEGER,
b [5] IMPLICIT UniversalString
}
END
-- SE: Semantic error
-- iso.org.dod.internet.private.enterprise (1.3.6.1.4.1)
-- .spelio.software.asn1c.test (9363.1.5.1)
-- .56
ModuleTestComponentsOfInvalidReference
{ iso org(3) dod(6) internet(1) private(4) enterprise(1)
spelio(9363) software(1) asn1c(5) test(1) 56 }
DEFINITIONS AUTOMATIC TAGS ::=
BEGIN
OneType ::= SEQUENCE {
a IA5String,
COMPONENTS OF INTEGER, -- Error is here
b UniversalString
}
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)
-- .57
ModuleTestComponentsOfCrossModule1
{ iso org(3) dod(6) internet(1) private(4) enterprise(1)
spelio(9363) software(1) asn1c(5) test(1) 57 1 }
DEFINITIONS AUTOMATIC TAGS ::=
BEGIN
SecondType ::= SEQUENCE {
a IA5String,
COMPONENTS OF ModuleTestComponentsOfCrossModule2.OneType,
b UniversalString
}
END
ModuleTestComponentsOfCrossModule2
{ iso org(3) dod(6) internet(1) private(4) enterprise(1)
spelio(9363) software(1) asn1c(5) test(1) 57 2 }
DEFINITIONS EXPLICIT TAGS ::=
BEGIN
OneType ::= SEQUENCE {
x T1,
y T2,
z T3
}
T1 ::= INTEGER
T2 ::= INTEGER
T3 ::= INTEGER
END
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment