aboutsummaryrefslogtreecommitdiffstats
path: root/tests/118-per-constraint-OK.asn1
blob: 98c9a3565aa025ee38d71862eece74416637b2d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
-- OK: Everything is fine

-- iso.org.dod.internet.private.enterprise (1.3.6.1.4.1)
-- .spelio.software.asn1c.test (9363.1.5.1)
-- .118

ModuleConstraintPrecedence
	{ iso org(3) dod(6) internet (1) private(4) enterprise(1)
		spelio(9363) software(1) asn1c(5) test(1) 118 }
	DEFINITIONS ::=
BEGIN

	E1 ::= IA5String (SIZE(1..5, ...) ^ FROM("A".."Z")) 
	E2 ::= IA5String (SIZE(1..5,...,5)) (FROM("A".."Z")) 
	E3 ::= IA5String (SIZE(1..5) ^ FROM("A".."Z"),...)
	E4 ::= IA5String (FROM("A".."Z"),...) (SIZE(1..5)) 

	C ::= IA5String (SIZE(10) ^ FROM("A".."D")
			| SIZE(20) ^ FROM("D".."F"))

	P ::= IA5String (FROM("AB") ^ SIZE(1..2)
			 | FROM("DE") ^ SIZE(3)
			 | FROM("AXE") ^ SIZE(1..5))

END