vlm | 284e684 | 2004-10-14 05:08:50 +0000 | [diff] [blame] | 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 | -- .67 |
| 7 | |
| 8 | ModuleTestEmbeddedChoice |
| 9 | { iso org(3) dod(6) internet(1) private(4) enterprise(1) |
| 10 | spelio(9363) software(1) asn1c(5) test(1) 67 } |
| 11 | DEFINITIONS AUTOMATIC TAGS ::= |
| 12 | BEGIN |
| 13 | |
| 14 | A ::= CHOICE { |
| 15 | a NULL, |
| 16 | b NULL, |
| 17 | ... |
| 18 | } |
| 19 | |
| 20 | B ::= CHOICE { |
| 21 | a NULL, |
| 22 | b NULL, |
| 23 | ..., |
| 24 | other A -- Only AUTOMATIC TAGS make it right |
| 25 | } |
| 26 | |
| 27 | C ::= SET { |
| 28 | a NULL, |
| 29 | b NULL, |
| 30 | ..., |
| 31 | other1 A, |
| 32 | other2 B |
| 33 | } |
| 34 | |
| 35 | END |