blob: 00ade3791a5bffd5516b32125b16237189b09a2b [file] [log] [blame]
vlmfa67ddc2004-06-03 03:38:44 +00001
2-- OK: Everything is fine
3
4-- iso.org.dod.internet.private.enterprise (1.3.6.1.4.1)
5-- .spelio.software.asn1c.test (9363.1.5.1)
vlm08ec3e22005-03-20 13:12:58 +00006-- .16 1
7-- .16 2
vlmfa67ddc2004-06-03 03:38:44 +00008
vlm08ec3e22005-03-20 13:12:58 +00009ModuleTestConstraint1
vlmfa67ddc2004-06-03 03:38:44 +000010 { iso org(3) dod(6) internet(1) private(4) enterprise(1)
vlm08ec3e22005-03-20 13:12:58 +000011 spelio(9363) software(1) asn1c(5) test(1) 16 1 }
vlmfa67ddc2004-06-03 03:38:44 +000012 DEFINITIONS ::=
13BEGIN
vlm08ec3e22005-03-20 13:12:58 +000014 IMPORTS Type1 FROM ModuleTestConstraint2;
vlmfa67ddc2004-06-03 03:38:44 +000015
16 -- external reference
vlma6a12e32005-03-20 12:58:00 +000017 Type0 ::= IA5String (Type6)
vlm08ec3e22005-03-20 13:12:58 +000018 Type6 ::= IA5String (Type1)
19END
20
21ModuleTestConstraint2
22 { iso org(3) dod(6) internet(1) private(4) enterprise(1)
23 spelio(9363) software(1) asn1c(5) test(1) 16 2 }
24 DEFINITIONS ::=
25BEGIN
26 EXPORTS Type1;
27
28 -- external reference
vlma6a12e32005-03-20 12:58:00 +000029 Type1 ::= IA5String (SIZE(1..ten,...))(FROM("a".."z"|"#",...))
vlmfa67ddc2004-06-03 03:38:44 +000030 Type2 ::= IA5String (SIZE (MIN..4)|FROM ("abc"))
31 Type3 ::= BMPString (SIZE(1))
32 Type4 ::= INTEGER (1..MAX)
33 Type5 ::= BOOLEAN (TRUE|FALSE)
vlma6a12e32005-03-20 12:58:00 +000034
35 ten INTEGER ::= 10
vlmfa67ddc2004-06-03 03:38:44 +000036
37 v1 Type1 ::= "#value wi
38 th ""double quotes"""
39END