NativeEnumerated.c vars NULL init and check
[com/asn1c.git] / tests / tests-asn1c-compiler / 18-class-OK.asn1.-EF
1 ModuleTestClass { iso org(3) dod(6) internet(1) private(4) enterprise(1)
2         spelio(9363) software(1) asn1c(5) test(1) 18 }
3 DEFINITIONS ::=
4 BEGIN
5
6 AlphaNumeric ::= IA5String (FROM("A".."Z" | "a".."z" | "0".."9"))
7
8 FUNCTION ::= CLASS {
9     &code        INTEGER (0..MAX) UNIQUE,
10     &Alphabet    IA5String DEFAULT {AlphaNumeric},
11     &ArgType    ,
12     &SupportedArguments  &ArgType OPTIONAL,
13     &ResultType  DEFAULT NULL,
14     &result-if-error     &ResultType DEFAULT NULL,
15     &associated-function         FUNCTION OPTIONAL
16 }
17
18 operator-plus FUNCTION ::= {
19                 &ArgType                Pair,
20                 &SupportedArguments     { PosPair | NegPair }
21                 &ResultType             INTEGER,
22                 &result-if-error        0,
23                 &code                   1
24         }
25
26 FunctionCodeType ::= FUNCTION.&code
27
28 END