Lev Walkin | d6db802 | 2005-03-18 03:53:05 +0000 | [diff] [blame] | 1 | ModuleTestIntegerAndEnumeratedConstraints { iso org(3) dod(6) internet(1) |
| 2 | private(4) enterprise(1) spelio(9363) software(1) asn1c(5) test(1) 74 } |
Lev Walkin | 412dec9 | 2005-03-10 11:30:23 +0000 | [diff] [blame] | 3 | DEFINITIONS ::= |
| 4 | BEGIN |
| 5 | |
| 6 | Enum ::= 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 | |
| 20 | Int ::= 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 | |
| 30 | EnumRef ::= Enum (1) |
| 31 | -- Combined constraints: (1 | 0)(1) |
| 32 | -- Practical constraints (Enum): (1) |
| 33 | -- PER-visible constraints (Enum): (1) |
| 34 | |
| 35 | END |