annotate gcc/testsuite/ada/acats/support/impdef.a @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 -- IMPDEF.A
kono
parents:
diff changeset
2 --
kono
parents:
diff changeset
3 -- Grant of Unlimited Rights
kono
parents:
diff changeset
4 --
kono
parents:
diff changeset
5 -- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687,
kono
parents:
diff changeset
6 -- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained
kono
parents:
diff changeset
7 -- unlimited rights in the software and documentation contained herein.
kono
parents:
diff changeset
8 -- Unlimited rights are defined in DFAR 252.227-7013(a)(19). By making
kono
parents:
diff changeset
9 -- this public release, the Government intends to confer upon all
kono
parents:
diff changeset
10 -- recipients unlimited rights equal to those held by the Government.
kono
parents:
diff changeset
11 -- These rights include rights to use, duplicate, release or disclose the
kono
parents:
diff changeset
12 -- released technical data and computer software in whole or in part, in
kono
parents:
diff changeset
13 -- any manner and for any purpose whatsoever, and to have or permit others
kono
parents:
diff changeset
14 -- to do so.
kono
parents:
diff changeset
15 --
kono
parents:
diff changeset
16 -- DISCLAIMER
kono
parents:
diff changeset
17 --
kono
parents:
diff changeset
18 -- ALL MATERIALS OR INFORMATION HEREIN RELEASED, MADE AVAILABLE OR
kono
parents:
diff changeset
19 -- DISCLOSED ARE AS IS. THE GOVERNMENT MAKES NO EXPRESS OR IMPLIED
kono
parents:
diff changeset
20 -- WARRANTY AS TO ANY MATTER WHATSOEVER, INCLUDING THE CONDITIONS OF THE
kono
parents:
diff changeset
21 -- SOFTWARE, DOCUMENTATION OR OTHER INFORMATION RELEASED, MADE AVAILABLE
kono
parents:
diff changeset
22 -- OR DISCLOSED, OR THE OWNERSHIP, MERCHANTABILITY, OR FITNESS FOR A
kono
parents:
diff changeset
23 -- PARTICULAR PURPOSE OF SAID MATERIAL.
kono
parents:
diff changeset
24 --*
kono
parents:
diff changeset
25 --
kono
parents:
diff changeset
26 -- DESCRIPTION:
kono
parents:
diff changeset
27 -- This package provides tailorable entities for a particular
kono
parents:
diff changeset
28 -- implementation. Each entity may be modified to suit the needs
kono
parents:
diff changeset
29 -- of the implementation. Default values are provided to act as
kono
parents:
diff changeset
30 -- a guide.
kono
parents:
diff changeset
31 --
kono
parents:
diff changeset
32 -- The entities in this package are those which are used in at least
kono
parents:
diff changeset
33 -- one core test. Entities which are used exclusively in tests for
kono
parents:
diff changeset
34 -- annexes C-H are located in annex-specific child units of this package.
kono
parents:
diff changeset
35 --
kono
parents:
diff changeset
36 -- CHANGE HISTORY:
kono
parents:
diff changeset
37 -- 12 DEC 93 SAIC Initial PreRelease version
kono
parents:
diff changeset
38 -- 02 DEC 94 SAIC Second PreRelease version
kono
parents:
diff changeset
39 -- 16 May 95 SAIC Added constants specific to tests of the random
kono
parents:
diff changeset
40 -- number generator.
kono
parents:
diff changeset
41 -- 16 May 95 SAIC Added Max_RPC_Call_Time constant.
kono
parents:
diff changeset
42 -- 17 Jul 95 SAIC Added Non_State_String constant.
kono
parents:
diff changeset
43 -- 21 Aug 95 SAIC Created from existing IMPSPEC.ADA and IMPBODY.ADA
kono
parents:
diff changeset
44 -- files.
kono
parents:
diff changeset
45 -- 30 Oct 95 SAIC Added external name string constants.
kono
parents:
diff changeset
46 -- 24 Jan 96 SAIC Added alignment constants.
kono
parents:
diff changeset
47 -- 29 Jan 96 SAIC Moved entities not used in core tests into annex-
kono
parents:
diff changeset
48 -- specific child packages. Adjusted commentary.
kono
parents:
diff changeset
49 -- Renamed Validating_System_Programming_Annex to
kono
parents:
diff changeset
50 -- Validating_Annex_C. Added similar Validating_Annex_?
kono
parents:
diff changeset
51 -- constants for the other non-core annexes (D-H).
kono
parents:
diff changeset
52 -- 01 Mar 96 SAIC Added external name string constants.
kono
parents:
diff changeset
53 -- 21 Mar 96 SAIC Added external name string constants.
kono
parents:
diff changeset
54 -- 02 May 96 SAIC Removed constants for draft test CXA5014, which was
kono
parents:
diff changeset
55 -- removed from the tentative ACVC 2.1 suite.
kono
parents:
diff changeset
56 -- Added constants for use with FXACA00.
kono
parents:
diff changeset
57 -- 06 Jun 96 SAIC Added constants for wide character test files.
kono
parents:
diff changeset
58 -- 11 Dec 96 SAIC Updated constants for wide character test files.
kono
parents:
diff changeset
59 -- 13 Dec 96 SAIC Added Address_Value_IO
kono
parents:
diff changeset
60 -- 13 Sep 99 RLB Added more external name string constants.
kono
parents:
diff changeset
61 -- 16 Sep 99 RLB Corrected definition of Non_State_String constant.
kono
parents:
diff changeset
62 --
kono
parents:
diff changeset
63 --!
kono
parents:
diff changeset
64
kono
parents:
diff changeset
65 with Report;
kono
parents:
diff changeset
66 with Ada.Text_IO;
kono
parents:
diff changeset
67 with System.Storage_Elements;
kono
parents:
diff changeset
68
kono
parents:
diff changeset
69 package ImpDef is
kono
parents:
diff changeset
70
kono
parents:
diff changeset
71 --=====-=====-=====-=====-=====-=====-=====-=====-=====-=====-=====-=====--
kono
parents:
diff changeset
72
kono
parents:
diff changeset
73 -- The following boolean constants indicate whether this validation will
kono
parents:
diff changeset
74 -- include any of annexes C-H. The values of these booleans affect the
kono
parents:
diff changeset
75 -- behavior of the test result reporting software.
kono
parents:
diff changeset
76 --
kono
parents:
diff changeset
77 -- True means the associated annex IS included in the validation.
kono
parents:
diff changeset
78 -- False means the associated annex is NOT included.
kono
parents:
diff changeset
79
kono
parents:
diff changeset
80 Validating_Annex_C : constant Boolean := True;
kono
parents:
diff changeset
81 -- ^^^^^ --- MODIFY HERE AS NEEDED
kono
parents:
diff changeset
82
kono
parents:
diff changeset
83 Validating_Annex_D : constant Boolean := True;
kono
parents:
diff changeset
84 -- ^^^^^ --- MODIFY HERE AS NEEDED
kono
parents:
diff changeset
85
kono
parents:
diff changeset
86 Validating_Annex_E : constant Boolean := True;
kono
parents:
diff changeset
87 -- ^^^^^ --- MODIFY HERE AS NEEDED
kono
parents:
diff changeset
88
kono
parents:
diff changeset
89 Validating_Annex_F : constant Boolean := True;
kono
parents:
diff changeset
90 -- ^^^^^ --- MODIFY HERE AS NEEDED
kono
parents:
diff changeset
91
kono
parents:
diff changeset
92 Validating_Annex_G : constant Boolean := True;
kono
parents:
diff changeset
93 -- ^^^^^ --- MODIFY HERE AS NEEDED
kono
parents:
diff changeset
94
kono
parents:
diff changeset
95 Validating_Annex_H : constant Boolean := True;
kono
parents:
diff changeset
96 -- ^^^^^ --- MODIFY HERE AS NEEDED
kono
parents:
diff changeset
97
kono
parents:
diff changeset
98 --=====-=====-=====-=====-=====-=====-=====-=====-=====-=====-=====-=====--
kono
parents:
diff changeset
99
kono
parents:
diff changeset
100 -- This is the minimum time required to allow another task to get
kono
parents:
diff changeset
101 -- control. It is expected that the task is on the Ready queue.
kono
parents:
diff changeset
102 -- A duration of 0.0 would normally be sufficient but some number
kono
parents:
diff changeset
103 -- greater than that is expected.
kono
parents:
diff changeset
104
kono
parents:
diff changeset
105 Minimum_Task_Switch : constant Duration := 0.001;
kono
parents:
diff changeset
106 -- ^^^ --- MODIFY HERE AS NEEDED
kono
parents:
diff changeset
107
kono
parents:
diff changeset
108 Long_Minimum_Task_Switch : constant Duration := 0.1;
kono
parents:
diff changeset
109
kono
parents:
diff changeset
110 --=====-=====-=====-=====-=====-=====-=====-=====-=====-=====-=====-=====--
kono
parents:
diff changeset
111
kono
parents:
diff changeset
112 -- This is the time required to activate another task and allow it
kono
parents:
diff changeset
113 -- to run to its first accept statement. We are considering a simple task
kono
parents:
diff changeset
114 -- with very few Ada statements before the accept. An implementation is
kono
parents:
diff changeset
115 -- free to specify a delay of several seconds, or even minutes if need be.
kono
parents:
diff changeset
116 -- The main effect of specifying a longer delay than necessary will be an
kono
parents:
diff changeset
117 -- extension of the time needed to run the associated tests.
kono
parents:
diff changeset
118
kono
parents:
diff changeset
119 Switch_To_New_Task : constant Duration := 0.001;
kono
parents:
diff changeset
120 -- ^^^ -- MODIFY HERE AS NEEDED
kono
parents:
diff changeset
121
kono
parents:
diff changeset
122 Long_Switch_To_New_Task : constant Duration := 0.1;
kono
parents:
diff changeset
123
kono
parents:
diff changeset
124 --=====-=====-=====-=====-=====-=====-=====-=====-=====-=====-=====-=====--
kono
parents:
diff changeset
125
kono
parents:
diff changeset
126 -- This is the time which will clear the queues of other tasks
kono
parents:
diff changeset
127 -- waiting to run. It is expected that this will be about five
kono
parents:
diff changeset
128 -- times greater than Switch_To_New_Task.
kono
parents:
diff changeset
129
kono
parents:
diff changeset
130 Clear_Ready_Queue : constant Duration := 0.1;
kono
parents:
diff changeset
131 -- ^^^ --- MODIFY HERE AS NEEDED
kono
parents:
diff changeset
132
kono
parents:
diff changeset
133 --=====-=====-=====-=====-=====-=====-=====-=====-=====-=====-=====-=====--
kono
parents:
diff changeset
134
kono
parents:
diff changeset
135 -- Some implementations will boot with the time set to 1901/1/1/0.0
kono
parents:
diff changeset
136 -- When a delay of Delay_For_Time_Past is given, the implementation
kono
parents:
diff changeset
137 -- guarantees that a subsequent call to Ada.Calendar.Time_Of(1901,1,1)
kono
parents:
diff changeset
138 -- will yield a time that has already passed (for example, when used in
kono
parents:
diff changeset
139 -- a delay_until statement).
kono
parents:
diff changeset
140
kono
parents:
diff changeset
141 Delay_For_Time_Past : constant Duration := 0.001;
kono
parents:
diff changeset
142 -- ^^^ --- MODIFY HERE AS NEEDED
kono
parents:
diff changeset
143
kono
parents:
diff changeset
144 --=====-=====-=====-=====-=====-=====-=====-=====-=====-=====-=====-=====--
kono
parents:
diff changeset
145
kono
parents:
diff changeset
146 -- Minimum time interval between calls to the time dependent Reset
kono
parents:
diff changeset
147 -- procedures in Float_Random and Discrete_Random packages that is
kono
parents:
diff changeset
148 -- guaranteed to initiate different sequences. See RM A.5.2(45).
kono
parents:
diff changeset
149
kono
parents:
diff changeset
150 Time_Dependent_Reset : constant Duration := 0.001;
kono
parents:
diff changeset
151 -- ^^^ --- MODIFY HERE AS NEEDED
kono
parents:
diff changeset
152
kono
parents:
diff changeset
153 --=====-=====-=====-=====-=====-=====-=====-=====-=====-=====-=====-=====--
kono
parents:
diff changeset
154
kono
parents:
diff changeset
155 -- Test CXA5013 will loop, trying to generate the required sequence
kono
parents:
diff changeset
156 -- of random numbers. If the RNG is faulty, the required sequence
kono
parents:
diff changeset
157 -- will never be generated. Delay_Per_Random_Test is a time-out value
kono
parents:
diff changeset
158 -- which allows the test to run for a period of time after which the
kono
parents:
diff changeset
159 -- test is failed if the required sequence has not been produced.
kono
parents:
diff changeset
160 -- This value should be the time allowed for the test to run before it
kono
parents:
diff changeset
161 -- times out. It should be long enough to allow multiple (independent)
kono
parents:
diff changeset
162 -- runs of the testing code, each generating up to 1000 random
kono
parents:
diff changeset
163 -- numbers.
kono
parents:
diff changeset
164
kono
parents:
diff changeset
165 Delay_Per_Random_Test : constant Duration := 0.001;
kono
parents:
diff changeset
166 -- ^^^ --- MODIFY HERE AS NEEDED
kono
parents:
diff changeset
167
kono
parents:
diff changeset
168 --=====-=====-=====-=====-=====-=====-=====-=====-=====-=====-=====-=====--
kono
parents:
diff changeset
169
kono
parents:
diff changeset
170 -- The time required to execute this procedure must be greater than the
kono
parents:
diff changeset
171 -- time slice unit on implementations which use time slicing. For
kono
parents:
diff changeset
172 -- implementations which do not use time slicing the body can be null.
kono
parents:
diff changeset
173
kono
parents:
diff changeset
174 procedure Exceed_Time_Slice;
kono
parents:
diff changeset
175
kono
parents:
diff changeset
176 --=====-=====-=====-=====-=====-=====-=====-=====-=====-=====-=====-=====--
kono
parents:
diff changeset
177
kono
parents:
diff changeset
178 -- This constant must not depict a random number generator state value.
kono
parents:
diff changeset
179 -- Using this string in a call to function Value from either the
kono
parents:
diff changeset
180 -- Discrete_Random or Float_Random packages will result in
kono
parents:
diff changeset
181 -- Constraint_Error or Program_Error (expected result in test CXA5012).
kono
parents:
diff changeset
182 -- If there is no such string, set it to "**NONE**".
kono
parents:
diff changeset
183
kono
parents:
diff changeset
184 Non_State_String : constant String := "By No Means A State";
kono
parents:
diff changeset
185 -- MODIFY HERE AS NEEDED --- ^^^^^^^^^^^^^^^^^^^
kono
parents:
diff changeset
186
kono
parents:
diff changeset
187 --=====-=====-=====-=====-=====-=====-=====-=====-=====-=====-=====-=====--
kono
parents:
diff changeset
188
kono
parents:
diff changeset
189 -- This string constant must be a legal external tag value as used by
kono
parents:
diff changeset
190 -- CD10001 for the type Some_Tagged_Type in the representation
kono
parents:
diff changeset
191 -- specification for the value of 'External_Tag.
kono
parents:
diff changeset
192
kono
parents:
diff changeset
193 External_Tag_Value : constant String := "implementation_defined";
kono
parents:
diff changeset
194 -- MODIFY HERE AS NEEDED --- ^^^^^^^^^^^^^^^^^^^^^^
kono
parents:
diff changeset
195
kono
parents:
diff changeset
196 --=====-=====-=====-=====-=====-=====-=====-=====-=====-=====-=====-=====--
kono
parents:
diff changeset
197
kono
parents:
diff changeset
198 -- The following address constant must be a valid address to locate
kono
parents:
diff changeset
199 -- the C program CD30005_1. It is shown here as a named number;
kono
parents:
diff changeset
200 -- the implementation may choose to type the constant as appropriate.
kono
parents:
diff changeset
201
kono
parents:
diff changeset
202 function Cd30005_Proc (X : Integer) return Integer;
kono
parents:
diff changeset
203 pragma Import (C, Cd30005_Proc, "_cd30005_1");
kono
parents:
diff changeset
204
kono
parents:
diff changeset
205 pragma Linker_Options ("ACATS4GNATDIR/support/cd300051.o");
kono
parents:
diff changeset
206
kono
parents:
diff changeset
207 CD30005_1_Foreign_Address : constant System.Address:= Cd30005_Proc'Address;
kono
parents:
diff changeset
208
kono
parents:
diff changeset
209 -- CD30005_1_Foreign_Address : constant System.Address:=
kono
parents:
diff changeset
210 -- System.Storage_Elements.To_Address ( 16#0000_0000# )
kono
parents:
diff changeset
211 -- --MODIFY HERE AS REQUIRED --- ^^^^^^^^^^^^^
kono
parents:
diff changeset
212
kono
parents:
diff changeset
213 --=====-=====-=====-=====-=====-=====-=====-=====-=====-=====-=====-=====--
kono
parents:
diff changeset
214
kono
parents:
diff changeset
215 -- The following string constant must be the external name resulting
kono
parents:
diff changeset
216 -- from the C compilation of CD30005_1. The string will be used as an
kono
parents:
diff changeset
217 -- argument to pragma Import.
kono
parents:
diff changeset
218
kono
parents:
diff changeset
219 CD30005_1_External_Name : constant String := "_cd30005_1";
kono
parents:
diff changeset
220 -- MODIFY HERE AS NEEDED --- ^^^^^^^^^
kono
parents:
diff changeset
221
kono
parents:
diff changeset
222 --=====-=====-=====-=====-=====-=====-=====-=====-=====-=====-=====-=====--
kono
parents:
diff changeset
223
kono
parents:
diff changeset
224 -- The following constants should represent the largest default alignment
kono
parents:
diff changeset
225 -- value and the largest alignment value supported by the linker.
kono
parents:
diff changeset
226 -- See RM 13.3(35).
kono
parents:
diff changeset
227
kono
parents:
diff changeset
228 Max_Default_Alignment : constant := Standard'Maximum_Alignment;
kono
parents:
diff changeset
229 -- ^ --- MODIFY HERE AS NEEDED
kono
parents:
diff changeset
230
kono
parents:
diff changeset
231 Max_Linker_Alignment : constant := Standard'Maximum_Alignment;
kono
parents:
diff changeset
232 -- ^ --- MODIFY HERE AS NEEDED
kono
parents:
diff changeset
233
kono
parents:
diff changeset
234 --=====-=====-=====-=====-=====-=====-=====-=====-=====-=====-=====-=====--
kono
parents:
diff changeset
235
kono
parents:
diff changeset
236 -- The following string constants must be the external names resulting
kono
parents:
diff changeset
237 -- from the C compilation of CXB30040.C, CXB30060.C, CXB30130.C, and
kono
parents:
diff changeset
238 -- CXB30131.C. The strings will be used as arguments to pragma Import.
kono
parents:
diff changeset
239
kono
parents:
diff changeset
240 CXB30040_External_Name : constant String := "CXB30040";
kono
parents:
diff changeset
241 -- MODIFY HERE AS NEEDED --- ^^^^^^^^
kono
parents:
diff changeset
242
kono
parents:
diff changeset
243 CXB30060_External_Name : constant String := "CXB30060";
kono
parents:
diff changeset
244 -- MODIFY HERE AS NEEDED --- ^^^^^^^^
kono
parents:
diff changeset
245
kono
parents:
diff changeset
246 CXB30130_External_Name : constant String := "CXB30130";
kono
parents:
diff changeset
247 -- MODIFY HERE AS NEEDED --- ^^^^^^^^
kono
parents:
diff changeset
248
kono
parents:
diff changeset
249 CXB30131_External_Name : constant String := "CXB30131";
kono
parents:
diff changeset
250 -- MODIFY HERE AS NEEDED --- ^^^^^^^^
kono
parents:
diff changeset
251
kono
parents:
diff changeset
252 --=====-=====-=====-=====-=====-=====-=====-=====-=====-=====-=====-=====--
kono
parents:
diff changeset
253
kono
parents:
diff changeset
254 -- The following string constants must be the external names resulting
kono
parents:
diff changeset
255 -- from the COBOL compilation of CXB40090.CBL, CXB40091.CBL, and
kono
parents:
diff changeset
256 -- CXB40092.CBL. The strings will be used as arguments to pragma Import.
kono
parents:
diff changeset
257
kono
parents:
diff changeset
258 CXB40090_External_Name : constant String := "CXB40090";
kono
parents:
diff changeset
259 -- MODIFY HERE AS NEEDED --- ^^^^^^^^
kono
parents:
diff changeset
260
kono
parents:
diff changeset
261 CXB40091_External_Name : constant String := "CXB40091";
kono
parents:
diff changeset
262 -- MODIFY HERE AS NEEDED --- ^^^^^^^^
kono
parents:
diff changeset
263
kono
parents:
diff changeset
264 CXB40092_External_Name : constant String := "CXB40092";
kono
parents:
diff changeset
265 -- MODIFY HERE AS NEEDED --- ^^^^^^^^
kono
parents:
diff changeset
266
kono
parents:
diff changeset
267 --=====-=====-=====-=====-=====-=====-=====-=====-=====-=====-=====-=====--
kono
parents:
diff changeset
268
kono
parents:
diff changeset
269 -- The following string constants must be the external names resulting
kono
parents:
diff changeset
270 -- from the Fortran compilation of CXB50040.FTN, CXB50041.FTN,
kono
parents:
diff changeset
271 -- CXB50050.FTN, and CXB50051.FTN.
kono
parents:
diff changeset
272 --
kono
parents:
diff changeset
273 -- The strings will be used as arguments to pragma Import.
kono
parents:
diff changeset
274 --
kono
parents:
diff changeset
275 -- Note that the use of these four string constants will be split between
kono
parents:
diff changeset
276 -- two tests, CXB5004 and CXB5005.
kono
parents:
diff changeset
277
kono
parents:
diff changeset
278 CXB50040_External_Name : constant String := "CXB50040";
kono
parents:
diff changeset
279 -- MODIFY HERE AS NEEDED --- ^^^^^^^^
kono
parents:
diff changeset
280
kono
parents:
diff changeset
281 CXB50041_External_Name : constant String := "CXB50041";
kono
parents:
diff changeset
282 -- MODIFY HERE AS NEEDED --- ^^^^^^^^
kono
parents:
diff changeset
283
kono
parents:
diff changeset
284 CXB50050_External_Name : constant String := "CXB50050";
kono
parents:
diff changeset
285 -- MODIFY HERE AS NEEDED --- ^^^^^^^^
kono
parents:
diff changeset
286
kono
parents:
diff changeset
287 CXB50051_External_Name : constant String := "CXB50051";
kono
parents:
diff changeset
288 -- MODIFY HERE AS NEEDED --- ^^^^^^^^
kono
parents:
diff changeset
289
kono
parents:
diff changeset
290 --=====-=====-=====-=====-=====-=====-=====-=====-=====-=====-=====-=====--
kono
parents:
diff changeset
291
kono
parents:
diff changeset
292 -- The following constants have been defined for use with the
kono
parents:
diff changeset
293 -- representation clause in FXACA00 of type Sales_Record_Type.
kono
parents:
diff changeset
294 --
kono
parents:
diff changeset
295 -- Char_Bits should be an integer at least as large as the number
kono
parents:
diff changeset
296 -- of bits needed to hold a character in an array.
kono
parents:
diff changeset
297 -- A value of 6 * Char_Bits will be used in a representation clause
kono
parents:
diff changeset
298 -- to reserve space for a six character string.
kono
parents:
diff changeset
299 --
kono
parents:
diff changeset
300 -- Next_Storage_Slot should indicate the next storage unit in the record
kono
parents:
diff changeset
301 -- representation clause that does not overlap the storage designated for
kono
parents:
diff changeset
302 -- the six character string.
kono
parents:
diff changeset
303
kono
parents:
diff changeset
304 Char_Bits : constant := 8;
kono
parents:
diff changeset
305 -- MODIFY HERE AS NEEDED ---^
kono
parents:
diff changeset
306
kono
parents:
diff changeset
307 Next_Storage_Slot : constant := 6;
kono
parents:
diff changeset
308 -- MODIFY HERE AS NEEDED ---^
kono
parents:
diff changeset
309
kono
parents:
diff changeset
310 --=====-=====-=====-=====-=====-=====-=====-=====-=====-=====-=====-=====--
kono
parents:
diff changeset
311
kono
parents:
diff changeset
312 -- The following string constant must be the path name for the .AW
kono
parents:
diff changeset
313 -- files that will be processed by the Wide Character processor to
kono
parents:
diff changeset
314 -- create the C250001 and C250002 tests. The Wide Character processor
kono
parents:
diff changeset
315 -- will expect to find the files to process at this location.
kono
parents:
diff changeset
316
kono
parents:
diff changeset
317 Test_Path_Root : constant String :=
kono
parents:
diff changeset
318 "ACATS4GNATDIR/tests/c2/";
kono
parents:
diff changeset
319 -- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ --- MODIFY HERE AS NEEDED
kono
parents:
diff changeset
320
kono
parents:
diff changeset
321 -- The following two strings must not be modified unless the .AW file
kono
parents:
diff changeset
322 -- names have been changed. The Wide Character processor will use
kono
parents:
diff changeset
323 -- these strings to find the .AW files used in creating the C250001
kono
parents:
diff changeset
324 -- and C250002 tests.
kono
parents:
diff changeset
325
kono
parents:
diff changeset
326 Wide_Character_Test : constant String := Test_Path_Root & "c250001";
kono
parents:
diff changeset
327 Upper_Latin_Test : constant String := Test_Path_Root & "c250002";
kono
parents:
diff changeset
328
kono
parents:
diff changeset
329 --=====-=====-=====-=====-=====-=====-=====-=====-=====-=====-=====-=====--
kono
parents:
diff changeset
330
kono
parents:
diff changeset
331 -- The following instance of Integer_IO or Modular_IO must be supplied
kono
parents:
diff changeset
332 -- in order for test CD72A02 to compile correctly.
kono
parents:
diff changeset
333 -- Depending on the choice of base type used for the type
kono
parents:
diff changeset
334 -- System.Storage_Elements.Integer_Address; one of the two instances will
kono
parents:
diff changeset
335 -- be correct. Comment out the incorrect instance.
kono
parents:
diff changeset
336
kono
parents:
diff changeset
337 -- package Address_Value_IO is
kono
parents:
diff changeset
338 -- new Ada.Text_IO.Integer_IO(System.Storage_Elements.Integer_Address);
kono
parents:
diff changeset
339
kono
parents:
diff changeset
340 package Address_Value_IO is
kono
parents:
diff changeset
341 new Ada.Text_IO.Modular_IO(System.Storage_Elements.Integer_Address);
kono
parents:
diff changeset
342
kono
parents:
diff changeset
343 --=====-=====-=====-=====-=====-=====-=====-=====-=====-=====-=====-=====--
kono
parents:
diff changeset
344
kono
parents:
diff changeset
345 One_Second : constant Duration := 0.001;
kono
parents:
diff changeset
346 One_Long_Second : constant Duration := 0.1;
kono
parents:
diff changeset
347
kono
parents:
diff changeset
348 end ImpDef;
kono
parents:
diff changeset
349
kono
parents:
diff changeset
350
kono
parents:
diff changeset
351 --==================================================================--
kono
parents:
diff changeset
352
kono
parents:
diff changeset
353
kono
parents:
diff changeset
354 package body ImpDef is
kono
parents:
diff changeset
355
kono
parents:
diff changeset
356 -- NOTE: These are example bodies. It is expected that implementors
kono
parents:
diff changeset
357 -- will write their own versions of these routines.
kono
parents:
diff changeset
358
kono
parents:
diff changeset
359 --=====-=====-=====-=====-=====-=====-=====-=====-=====-=====-=====-=====--
kono
parents:
diff changeset
360
kono
parents:
diff changeset
361 -- The time required to execute this procedure must be greater than the
kono
parents:
diff changeset
362 -- time slice unit on implementations which use time slicing. For
kono
parents:
diff changeset
363 -- implementations which do not use time slicing the body can be null.
kono
parents:
diff changeset
364
kono
parents:
diff changeset
365 Procedure Exceed_Time_Slice is
kono
parents:
diff changeset
366 T : Integer := 0;
kono
parents:
diff changeset
367 Loop_Max : constant Integer := 4_000;
kono
parents:
diff changeset
368 begin
kono
parents:
diff changeset
369 for I in 1..Loop_Max loop
kono
parents:
diff changeset
370 T := Report.Ident_Int (1) * Report.Ident_Int (2);
kono
parents:
diff changeset
371 end loop;
kono
parents:
diff changeset
372 end Exceed_Time_Slice;
kono
parents:
diff changeset
373
kono
parents:
diff changeset
374 --=====-=====-=====-=====-=====-=====-=====-=====-=====-=====-=====-=====--
kono
parents:
diff changeset
375
kono
parents:
diff changeset
376 end ImpDef;