NativeEnumerated.c vars NULL init and check
[com/asn1c.git] / tests / tests-asn1c-compiler / 139-component-relation-OK.asn1.-EFprint-class-matrix
1 ModuleComponentRelationConstraint { iso org(3) dod(6) internet(1) private(4)
2         enterprise(1) spelio(9363) software(1) asn1c(5) test(1) 139 }
3 DEFINITIONS ::=
4 BEGIN
5
6 Frame ::= SEQUENCE {
7     ident        FRAME-STRUCTURE.&id ({FrameTypes}),
8     value        FRAME-STRUCTURE.&Type ({FrameTypes}{@.ident}),
9     ...
10 }
11
12 FRAME-STRUCTURE ::= CLASS {
13     &id  INTEGER UNIQUE,
14     &Type        ANY
15 } WITH SYNTAX {&Type IDENTIFIED BY &id}
16
17 -- Information Object Set has 2 entries:
18 --    [             &id][           &Type]
19 -- [1]     basicMessage  PrimitiveMessage 
20 -- [2]                2    ComplexMessage 
21
22
23 FrameTypes FRAME-STRUCTURE ::= {{ PrimitiveMessage IDENTIFIED BY basicMessage } | { ComplexMessage IDENTIFIED BY 2 },...}
24 -- Information Object Set has 2 entries:
25 --    [             &id][           &Type]
26 -- [1]     basicMessage  PrimitiveMessage 
27 -- [2]                2    ComplexMessage 
28 -- [ ] ...
29
30
31 PrimitiveMessage ::= SEQUENCE { }
32
33 ComplexMessage ::= SEQUENCE { }
34
35 basicMessage INTEGER ::= 1
36
37 END