Last sync 2016.04.01
[deliverable/titan.core.git] / regression_test / negativeTest / Types.asn
CommitLineData
970ed795 1--/////////////////////////////////////////////////////////////////////////////
d44e3c4f 2-- Copyright (c) 2000-2016 Ericsson Telecom AB
970ed795
EL
3-- All rights reserved. This program and the accompanying materials
4-- are made available under the terms of the Eclipse Public License v1.0
5-- which accompanies this distribution, and is available at
6-- http://www.eclipse.org/legal/epl-v10.html
d44e3c4f 7--
8-- Contributors:
9-- Balasko, Jeno
10-- Delic, Adam
11--
970ed795
EL
12--/////////////////////////////////////////////////////////////////////////////
13Types
14DEFINITIONS
15::=
16BEGIN
17IMPORTS ;
18
19-- MyInt ::= INTEGER (1..10)
20
21MySeq ::= SEQUENCE {
22 i INTEGER,
23 b BOOLEAN
24}
25
26MySeqModified ::= SEQUENCE {
27 i INTEGER OPTIONAL,
28 b BOOLEAN OPTIONAL
29}
30
31MySeqModified2 ::= SEQUENCE {
32 bs BIT STRING,
33 i INTEGER OPTIONAL,
34 oc OCTET STRING,
35 b BOOLEAN OPTIONAL,
36 r REAL
37}
38
39MySeqModified3 ::= SEQUENCE {
40 b BOOLEAN
41}
42
43MySeqModified4 ::= SEQUENCE {
44}
45
46MySeqModified5 ::= SEQUENCE {
47 sof MySeqOf
48}
49
50MySeqModified6 ::= SEQUENCE {
51 u MyUnion
52}
53
54MySeqOf ::= SEQUENCE OF INTEGER
55MySeqOfModified ::= SEQUENCE OF REAL
56MySeqOfModified2 ::= SEQUENCE OF BOOLEAN
57
58MyUnion ::= CHOICE {
59 i INTEGER,
60 b BOOLEAN,
61 s MySeq
62}
63
64MyUnionModified ::= CHOICE {
65 i INTEGER,
66 b BOOLEAN,
67 s MySeqModified4,
68 r REAL,
69 bs BIT STRING,
70 os OCTET STRING
71}
72
73MySeqModifiedT ::= SEQUENCE {
74 b BOOLEAN,
75 i INTEGER
76}
77
78MyInt ::= [77] INTEGER
79MyBool::= [88] BOOLEAN
80
81MySeqTerr ::= SEQUENCE {
82 i MyInt,
83 b MyBool
84}
85
86MyRecursiveSeq ::= SEQUENCE {
87 r MyRecursiveSeq OPTIONAL
88}
89
90END
This page took 0.034292 seconds and 5 git commands to generate.