Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / ada / acats / tests / c7 / c74302a.ada
bloba772e5087f231d3640b29a98bb2c86beb36d8b2a
1 -- C74302A.ADA
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.
16 -- DISCLAIMER
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 MULTIPLE DECLARATIONS MAY BE USED FOR DEFERRED CONSTANT
26 -- DECLARATIONS, EVEN IF THE FULL DECLARATIONS ARE GIVEN INDIVIDUALLY.
28 -- CHECK THAT MULTIPLE DECLARATIONS MAY BE USED FOR THE FULL
29 -- DECLARATIONS, EVEN IF THE DEFERRED CONSTANT DECLARATIONS ARE GIVEN
30 -- INDIVIDUALLY.
33 -- DSJ 5/09/83
34 -- SPS 10/24/83
35 -- EG 12/19/83
36 -- JRK 12/20/83
38 -- DTN 11/19/91 DELETED SUBPART (C).
40 WITH REPORT;
41 PROCEDURE C74302A IS
43 USE REPORT;
45 BEGIN
47 TEST("C74302A", "CHECK THAT MULTIPLE DECLARATIONS MAY BE USED " &
48 "FOR DEFERRED CONSTANT DECLARATIONS");
50 DECLARE
52 PACKAGE PACK1 IS
54 TYPE T IS PRIVATE;
56 B, E : CONSTANT T;
58 F : CONSTANT T;
59 PRIVATE
61 TYPE T IS NEW INTEGER;
63 E : CONSTANT T := T(IDENT_INT(4));
65 B, F : CONSTANT T := T(IDENT_INT(2));
67 END PACK1;
69 USE PACK1;
71 BEGIN
73 IF B/=F THEN
74 FAILED("VALUES OF DEFERRED CONSTANTS B AND F NOT EQUAL");
75 END IF;
77 END;
79 RESULT;
81 END C74302A;