COMPONENTS OF support testing

git-svn-id: https://asn1c.svn.sourceforge.net/svnroot/asn1c/trunk@177 59561ff5-6e30-0410-9f3c-9617f08c8826
This commit is contained in:
vlm 2004-08-22 03:06:30 +00:00
parent 903a213713
commit 915d645392
4 changed files with 125 additions and 0 deletions

View File

@ -0,0 +1,34 @@
-- 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

View File

@ -0,0 +1,33 @@
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

View File

@ -0,0 +1,20 @@
-- 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

View File

@ -0,0 +1,38 @@
-- 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