asn1c/tests/16-constraint-OK.asn1

40 lines
906 B
Plaintext
Raw Normal View History

2004-06-03 03:38:44 +00:00
-- OK: Everything is fine
-- iso.org.dod.internet.private.enterprise (1.3.6.1.4.1)
-- .spelio.software.asn1c.test (9363.1.5.1)
2005-03-20 13:12:58 +00:00
-- .16 1
-- .16 2
2004-06-03 03:38:44 +00:00
2005-03-20 13:12:58 +00:00
ModuleTestConstraint1
2004-06-03 03:38:44 +00:00
{ iso org(3) dod(6) internet(1) private(4) enterprise(1)
2005-03-20 13:12:58 +00:00
spelio(9363) software(1) asn1c(5) test(1) 16 1 }
2004-06-03 03:38:44 +00:00
DEFINITIONS ::=
BEGIN
2005-03-20 13:12:58 +00:00
IMPORTS Type1 FROM ModuleTestConstraint2;
2004-06-03 03:38:44 +00:00
-- external reference
2005-03-20 12:58:00 +00:00
Type0 ::= IA5String (Type6)
2005-03-20 13:12:58 +00:00
Type6 ::= IA5String (Type1)
END
ModuleTestConstraint2
{ iso org(3) dod(6) internet(1) private(4) enterprise(1)
spelio(9363) software(1) asn1c(5) test(1) 16 2 }
DEFINITIONS ::=
BEGIN
EXPORTS Type1;
-- external reference
2005-03-20 12:58:00 +00:00
Type1 ::= IA5String (SIZE(1..ten,...))(FROM("a".."z"|"#",...))
2004-06-03 03:38:44 +00:00
Type2 ::= IA5String (SIZE (MIN..4)|FROM ("abc"))
Type3 ::= BMPString (SIZE(1))
Type4 ::= INTEGER (1..MAX)
Type5 ::= BOOLEAN (TRUE|FALSE)
2005-03-20 12:58:00 +00:00
ten INTEGER ::= 10
2004-06-03 03:38:44 +00:00
v1 Type1 ::= "#value wi
th ""double quotes"""
END