blob: 45cb51564300cfe5a54b253af181851425d1d384 [file] [log] [blame]
Lev Walkind6db8022005-03-18 03:53:05 +00001ModuleTestIntegerAndEnumeratedConstraints { iso org(3) dod(6) internet(1)
2 private(4) enterprise(1) spelio(9363) software(1) asn1c(5) test(1) 74 }
Lev Walkin412dec92005-03-10 11:30:23 +00003DEFINITIONS ::=
4BEGIN
5
6Enum ::= ENUMERATED {
7 one(0)
8-- Practical constraints (one):
9-- PER-visible constraints (one):
10,
11 two(1)
12-- Practical constraints (two):
13-- PER-visible constraints (two):
14
15} (1 | 0)
16-- Combined constraints: (1 | 0)
17-- Practical constraints (Enum): (0..1)
18-- PER-visible constraints (Enum): (0..1)
19
20Int ::= INTEGER {
21 v1-0(123)
22-- Practical constraints (v1-0):
23-- PER-visible constraints (v1-0):
24
25} (123)
26-- Combined constraints: (123)
27-- Practical constraints (Int): (123)
28-- PER-visible constraints (Int): (123)
29
30EnumRef ::= Enum (1)
31-- Combined constraints: (1 | 0)(1)
32-- Practical constraints (Enum): (1)
33-- PER-visible constraints (Enum): (1)
34
35END