Lev Walkin | 9c70e74 | 2013-10-17 13:03:36 -0700 | [diff] [blame] | 1 | ModuleTestIntegerAndEnumeratedConstraints { iso org(3) dod(6) internet(1) |
| 2 | private(4) enterprise(1) spelio(9363) software(1) asn1c(5) test(1) |
Lev Walkin | 5b7eeaf | 2005-03-28 17:52:43 +0000 | [diff] [blame] | 3 | 74 } |
Lev Walkin | 412dec9 | 2005-03-10 11:30:23 +0000 | [diff] [blame] | 4 | DEFINITIONS ::= |
| 5 | BEGIN |
| 6 | |
| 7 | Enum ::= ENUMERATED { |
| 8 | one(0) |
| 9 | -- Practical constraints (one): |
Lev Walkin | 3ad1e32 | 2017-07-25 06:23:18 -0700 | [diff] [blame] | 10 | -- OER-visible constraints (one): |
Lev Walkin | 412dec9 | 2005-03-10 11:30:23 +0000 | [diff] [blame] | 11 | -- PER-visible constraints (one): |
| 12 | , |
| 13 | two(1) |
| 14 | -- Practical constraints (two): |
Lev Walkin | 3ad1e32 | 2017-07-25 06:23:18 -0700 | [diff] [blame] | 15 | -- OER-visible constraints (two): |
Lev Walkin | 412dec9 | 2005-03-10 11:30:23 +0000 | [diff] [blame] | 16 | -- PER-visible constraints (two): |
| 17 | |
| 18 | } (1 | 0) |
| 19 | -- Combined constraints: (1 | 0) |
| 20 | -- Practical constraints (Enum): (0..1) |
Lev Walkin | 3ad1e32 | 2017-07-25 06:23:18 -0700 | [diff] [blame] | 21 | -- OER-visible constraints (Enum): (0..1) |
Lev Walkin | 412dec9 | 2005-03-10 11:30:23 +0000 | [diff] [blame] | 22 | -- PER-visible constraints (Enum): (0..1) |
| 23 | |
| 24 | Int ::= INTEGER { |
| 25 | v1-0(123) |
| 26 | -- Practical constraints (v1-0): |
Lev Walkin | 3ad1e32 | 2017-07-25 06:23:18 -0700 | [diff] [blame] | 27 | -- OER-visible constraints (v1-0): |
Lev Walkin | 412dec9 | 2005-03-10 11:30:23 +0000 | [diff] [blame] | 28 | -- PER-visible constraints (v1-0): |
| 29 | |
| 30 | } (123) |
| 31 | -- Combined constraints: (123) |
| 32 | -- Practical constraints (Int): (123) |
Lev Walkin | 3ad1e32 | 2017-07-25 06:23:18 -0700 | [diff] [blame] | 33 | -- OER-visible constraints (Int): (123) |
Lev Walkin | 412dec9 | 2005-03-10 11:30:23 +0000 | [diff] [blame] | 34 | -- PER-visible constraints (Int): (123) |
| 35 | |
| 36 | EnumRef ::= Enum (1) |
| 37 | -- Combined constraints: (1 | 0)(1) |
| 38 | -- Practical constraints (Enum): (1) |
Lev Walkin | 3ad1e32 | 2017-07-25 06:23:18 -0700 | [diff] [blame] | 39 | -- OER-visible constraints (Enum): (1) |
Lev Walkin | 412dec9 | 2005-03-10 11:30:23 +0000 | [diff] [blame] | 40 | -- PER-visible constraints (Enum): (1) |
| 41 | |
| 42 | END |