OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [ada/] [acats/] [tests/] [a/] [aa2010a.ada] - Blame information for rev 316

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 294 jeremybenn
-- AA2010A.ADA
2
 
3
--                             Grant of Unlimited Rights
4
--
5
--     Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687,
6
--     F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained 
7
--     unlimited rights in the software and documentation contained herein.
8
--     Unlimited rights are defined in DFAR 252.227-7013(a)(19).  By making 
9
--     this public release, the Government intends to confer upon all 
10
--     recipients unlimited rights  equal to those held by the Government.  
11
--     These rights include rights to use, duplicate, release or disclose the 
12
--     released technical data and computer software in whole or in part, in 
13
--     any manner and for any purpose whatsoever, and to have or permit others 
14
--     to do so.
15
--
16
--                                    DISCLAIMER
17
--
18
--     ALL MATERIALS OR INFORMATION HEREIN RELEASED, MADE AVAILABLE OR
19
--     DISCLOSED ARE AS IS.  THE GOVERNMENT MAKES NO EXPRESS OR IMPLIED 
20
--     WARRANTY AS TO ANY MATTER WHATSOEVER, INCLUDING THE CONDITIONS OF THE
21
--     SOFTWARE, DOCUMENTATION OR OTHER INFORMATION RELEASED, MADE AVAILABLE 
22
--     OR DISCLOSED, OR THE OWNERSHIP, MERCHANTABILITY, OR FITNESS FOR A
23
--     PARTICULAR PURPOSE OF SAID MATERIAL.
24
--*
25
-- CHECK THAT SUBUNIT NAMES CAN BE IDENTICAL TO IDENTIFIERS DECLARED IN
26
-- STANDARD, NAMELY, BOOLEAN, INTEGER, FLOAT, CHARACTER, ASCII, 
27
-- NATURAL, POSITIVE, STRING, DURATION, CONSTRAINT_ERROR, 
28
-- NUMERIC_ERROR, PROGRAM_ERROR, STORAGE_ERROR, AND TASKING_ERROR.
29
 
30
-- R.WILLIAMS 9/18/86
31
 
32
PACKAGE AA2010A_TYPEDEF IS
33
     TYPE ENUM IS (E1, E2, E3);
34
END AA2010A_TYPEDEF;
35
 
36
WITH AA2010A_TYPEDEF; USE AA2010A_TYPEDEF;
37
PACKAGE AA2010A_PARENT IS
38
 
39
     PROCEDURE BOOLEAN;
40
     FUNCTION INTEGER RETURN ENUM;
41
     PACKAGE FLOAT IS END FLOAT;
42
 
43
     PROCEDURE CHARACTER;
44
     FUNCTION ASCII RETURN ENUM;
45
 
46
     TASK NATURAL IS
47
          ENTRY E;
48
     END NATURAL;
49
 
50
     PROCEDURE POSITIVE;
51
     FUNCTION STRING RETURN ENUM;
52
     PACKAGE DURATION IS END DURATION;
53
 
54
     PROCEDURE CONSTRAINT_ERROR;
55
     FUNCTION NUMERIC_ERROR RETURN ENUM;
56
 
57
     TASK PROGRAM_ERROR IS
58
          ENTRY E;
59
     END PROGRAM_ERROR;
60
 
61
     PROCEDURE STORAGE_ERROR;
62
     FUNCTION TASKING_ERROR RETURN ENUM;
63
 
64
END AA2010A_PARENT;
65
 
66
PACKAGE BODY AA2010A_PARENT IS
67
 
68
     PROCEDURE BOOLEAN IS SEPARATE;
69
     FUNCTION INTEGER RETURN ENUM IS SEPARATE;
70
     PACKAGE BODY FLOAT IS SEPARATE;
71
 
72
     PROCEDURE CHARACTER IS SEPARATE;
73
     FUNCTION ASCII RETURN ENUM IS SEPARATE;
74
     TASK BODY NATURAL IS SEPARATE;
75
 
76
     PROCEDURE POSITIVE IS SEPARATE;
77
     FUNCTION STRING RETURN ENUM IS SEPARATE;
78
     PACKAGE BODY DURATION IS SEPARATE;
79
 
80
     PROCEDURE CONSTRAINT_ERROR IS SEPARATE;
81
     FUNCTION NUMERIC_ERROR RETURN ENUM IS SEPARATE;
82
     TASK BODY PROGRAM_ERROR IS SEPARATE;
83
 
84
     PROCEDURE STORAGE_ERROR IS SEPARATE;
85
     FUNCTION TASKING_ERROR RETURN ENUM IS SEPARATE;
86
 
87
END AA2010A_PARENT;
88
 
89
SEPARATE (AA2010A_PARENT)
90
PROCEDURE BOOLEAN IS
91
BEGIN
92
     NULL;
93
END;
94
 
95
SEPARATE (AA2010A_PARENT)
96
FUNCTION INTEGER RETURN ENUM IS
97
BEGIN
98
     RETURN E1;
99
END;
100
 
101
SEPARATE (AA2010A_PARENT)
102
PACKAGE BODY FLOAT IS END;
103
 
104
SEPARATE (AA2010A_PARENT)
105
PROCEDURE CHARACTER IS
106
BEGIN
107
     NULL;
108
END;
109
 
110
SEPARATE (AA2010A_PARENT)
111
FUNCTION ASCII RETURN ENUM IS
112
BEGIN
113
     RETURN E1;
114
END;
115
 
116
SEPARATE (AA2010A_PARENT)
117
TASK BODY NATURAL IS
118
BEGIN
119
     ACCEPT E;
120
END;
121
 
122
SEPARATE (AA2010A_PARENT)
123
PROCEDURE POSITIVE IS
124
BEGIN
125
     NULL;
126
END;
127
 
128
SEPARATE (AA2010A_PARENT)
129
FUNCTION STRING RETURN ENUM IS
130
BEGIN
131
     RETURN E1;
132
END;
133
 
134
SEPARATE (AA2010A_PARENT)
135
PACKAGE BODY DURATION IS END;
136
 
137
SEPARATE (AA2010A_PARENT)
138
PROCEDURE CONSTRAINT_ERROR IS
139
BEGIN
140
     NULL;
141
END;
142
 
143
SEPARATE (AA2010A_PARENT)
144
FUNCTION NUMERIC_ERROR RETURN ENUM IS
145
BEGIN
146
     RETURN E1;
147
END;
148
 
149
SEPARATE (AA2010A_PARENT)
150
TASK BODY PROGRAM_ERROR IS
151
BEGIN
152
     ACCEPT E;
153
END;
154
 
155
SEPARATE (AA2010A_PARENT)
156
PROCEDURE STORAGE_ERROR IS
157
BEGIN
158
     NULL;
159
END;
160
 
161
SEPARATE (AA2010A_PARENT)
162
FUNCTION TASKING_ERROR RETURN ENUM IS
163
BEGIN
164
     RETURN E1;
165
END;
166
 
167
WITH REPORT; USE REPORT;
168
WITH AA2010A_TYPEDEF; USE AA2010A_TYPEDEF;
169
WITH AA2010A_PARENT; USE AA2010A_PARENT;
170
PROCEDURE AA2010A IS
171
     E : ENUM;
172
BEGIN
173
     TEST ( "AA2010A", "CHECK THAT SUBUNIT NAMES CAN BE IDENTICAL " &
174
                       "TO IDENTIFIERS DECLARED IN STANDARD, " &
175
                       "NAMELY, BOOLEAN, INTEGER, FLOAT, " &
176
                       "CHARACTER, ASCII, NATURAL, POSITIVE, " &
177
                       "STRING, DURATION, CONSTRAINT_ERROR, " &
178
                       "NUMERIC_ERROR, PROGRAM_ERROR, " &
179
                       "STORAGE_ERROR, AND TASKING_ERROR" );
180
 
181
     AA2010A_PARENT.BOOLEAN;
182
     E := AA2010A_PARENT.INTEGER;
183
 
184
     AA2010A_PARENT.CHARACTER;
185
     E := AA2010A_PARENT.ASCII;
186
     AA2010A_PARENT.NATURAL.E;
187
 
188
     AA2010A_PARENT.POSITIVE;
189
     E := AA2010A_PARENT.STRING;
190
 
191
     AA2010A_PARENT.CONSTRAINT_ERROR;
192
     E := AA2010A_PARENT.NUMERIC_ERROR;
193
     AA2010A_PARENT.PROGRAM_ERROR.E;
194
 
195
     AA2010A_PARENT.STORAGE_ERROR;
196
     E := AA2010A_PARENT.TASKING_ERROR;
197
 
198
     RESULT;
199
END AA2010A;

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.