NativeEnumerated.c vars NULL init and check
[com/asn1c.git] / tests / tests-asn1c-compiler / 118-per-constraint-OK.asn1
1
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)
6 -- .118
7
8 ModuleConstraintPrecedence
9         { iso org(3) dod(6) internet (1) private(4) enterprise(1)
10                 spelio(9363) software(1) asn1c(5) test(1) 118 }
11         DEFINITIONS ::=
12 BEGIN
13
14         E1 ::= IA5String (SIZE(1..5, ...) ^ FROM("A".."Z")) 
15         E2 ::= IA5String (SIZE(1..5,...,5)) (FROM("A".."Z")) 
16         E3 ::= IA5String (SIZE(1..5) ^ FROM("A".."Z"),...)
17         E4 ::= IA5String (FROM("A".."Z"),...) (SIZE(1..5)) 
18
19         C ::= IA5String (SIZE(10) ^ FROM("A".."D")
20                         | SIZE(20) ^ FROM("D".."F"))
21
22         P ::= IA5String (FROM("AB") ^ SIZE(1..2)
23                          | FROM("DE") ^ SIZE(3)
24                          | FROM("AXE") ^ SIZE(1..5))
25
26 END