annotate gcc/testsuite/ada/acats/support/fxacb00.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 -- FXACB00.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 -- FOUNDATION DESCRIPTION:
kono
parents:
diff changeset
27 -- This foundation consists of type definitions and object declarations
kono
parents:
diff changeset
28 -- used by tests of Stream_IO functionality.
kono
parents:
diff changeset
29 -- These types include an unconstrained array type, and a discriminated
kono
parents:
diff changeset
30 -- record without a default discriminant, specifically chosen for use in
kono
parents:
diff changeset
31 -- demonstrating the capabilities of 'Output and 'Input.
kono
parents:
diff changeset
32 --
kono
parents:
diff changeset
33 -- CHANGE HISTORY:
kono
parents:
diff changeset
34 -- 06 Dec 94 SAIC ACVC 2.0
kono
parents:
diff changeset
35 --
kono
parents:
diff changeset
36 --!
kono
parents:
diff changeset
37
kono
parents:
diff changeset
38 package FXACB00 is
kono
parents:
diff changeset
39
kono
parents:
diff changeset
40 type Customer_Type is (Residence, Apartment, Commercial);
kono
parents:
diff changeset
41 type Electric_Usage_Type is range 0..100000;
kono
parents:
diff changeset
42 type Months_In_Service_Type is range 1..12;
kono
parents:
diff changeset
43 type Quarterly_Period_Type is (Spring, Summer, Autumn, Winter);
kono
parents:
diff changeset
44 subtype Month_In_Quarter_Type is Positive range 1..3;
kono
parents:
diff changeset
45 type Service_History_Type is
kono
parents:
diff changeset
46 array (Quarterly_Period_Type range <>, Month_In_Quarter_Type range <>)
kono
parents:
diff changeset
47 of Electric_Usage_Type;
kono
parents:
diff changeset
48
kono
parents:
diff changeset
49
kono
parents:
diff changeset
50 type Service_Type (Customer : Customer_Type) is
kono
parents:
diff changeset
51 record
kono
parents:
diff changeset
52 Name : String (1..21);
kono
parents:
diff changeset
53 Account_ID : Natural range 0..100;
kono
parents:
diff changeset
54 case Customer is
kono
parents:
diff changeset
55 when Residence | Apartment =>
kono
parents:
diff changeset
56 Low_Income_Credit : Boolean := False;
kono
parents:
diff changeset
57 when Commercial =>
kono
parents:
diff changeset
58 Baseline_Allowance : Natural range 0..1000;
kono
parents:
diff changeset
59 Quantity_Discount : Boolean := False;
kono
parents:
diff changeset
60 end case;
kono
parents:
diff changeset
61 end record;
kono
parents:
diff changeset
62
kono
parents:
diff changeset
63
kono
parents:
diff changeset
64 -- Object Declarations
kono
parents:
diff changeset
65
kono
parents:
diff changeset
66
kono
parents:
diff changeset
67 Customer1 : Service_Type (Residence) :=
kono
parents:
diff changeset
68 (Residence, "1221 Morningstar Lane", 44, False);
kono
parents:
diff changeset
69 Customer2 : Service_Type (Apartment) := (Customer => Apartment,
kono
parents:
diff changeset
70 Account_ID => 67,
kono
parents:
diff changeset
71 Name => "15 South Front St. #8",
kono
parents:
diff changeset
72 Low_Income_Credit => True);
kono
parents:
diff changeset
73 Customer3 : Service_Type (Commercial) := (Commercial,
kono
parents:
diff changeset
74 "12442 Central Avenue ",
kono
parents:
diff changeset
75 100,
kono
parents:
diff changeset
76 Baseline_Allowance => 938,
kono
parents:
diff changeset
77 Quantity_Discount => True);
kono
parents:
diff changeset
78
kono
parents:
diff changeset
79 --
kono
parents:
diff changeset
80
kono
parents:
diff changeset
81 C1_Months : Months_In_Service_Type := 10;
kono
parents:
diff changeset
82 C2_Months : Months_In_Service_Type := 2;
kono
parents:
diff changeset
83 C3_Months : Months_In_Service_Type := 12;
kono
parents:
diff changeset
84
kono
parents:
diff changeset
85 --
kono
parents:
diff changeset
86
kono
parents:
diff changeset
87 C1_Service_History :
kono
parents:
diff changeset
88 Service_History_Type (Quarterly_Period_Type, Month_In_Quarter_Type) :=
kono
parents:
diff changeset
89 (Spring => (1 => 35, 2 => 39, 3 => 32),
kono
parents:
diff changeset
90 Summer => (1 => 34, 2 => 33, 3 => 39),
kono
parents:
diff changeset
91 Autumn => (1 => 45, 2 => 40, 3 => 38),
kono
parents:
diff changeset
92 Winter => (1 => 53, 2 => 0, 3 => 0));
kono
parents:
diff changeset
93
kono
parents:
diff changeset
94 C2_Service_History :
kono
parents:
diff changeset
95 Service_History_Type (Quarterly_Period_Type range Spring..Summer,
kono
parents:
diff changeset
96 Month_In_Quarter_Type) :=
kono
parents:
diff changeset
97 (Spring => (23, 22, 0), Summer => (0, 0, 0));
kono
parents:
diff changeset
98
kono
parents:
diff changeset
99 C3_Service_History :
kono
parents:
diff changeset
100 Service_History_Type (Quarterly_Period_Type, Month_In_Quarter_Type) :=
kono
parents:
diff changeset
101 (others => (others => 200));
kono
parents:
diff changeset
102
kono
parents:
diff changeset
103 --
kono
parents:
diff changeset
104
kono
parents:
diff changeset
105 Total_Customers_In_Service : constant Natural := 3;
kono
parents:
diff changeset
106
kono
parents:
diff changeset
107 end FXACB00;