Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / ada / acats / tests / c2 / c2a008a.ada
blob70690c7dd87c64951df0c67d2904c1bafe8b5095
1 -- C2A008A.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 UPPER AND LOWER CASE "E" MAY APPEAR IN BASED LITERALS,
26 -- WHEN USING COLONS IN PLACE OF THE SHARP SIGN.
28 -- TBN 2/28/86
30 WITH REPORT; USE REPORT;
31 PROCEDURE C2A008A IS
33 TYPE FLOAT IS DIGITS 5;
34 INT_1 : INTEGER := 15:A:E1;
35 INT_2 : INTEGER := 15:A:e1;
36 FLO_1 : FLOAT := 16:FD.C:E1;
37 FLO_2 : FLOAT := 16:FD.C:e1;
39 BEGIN
40 TEST("C2A008A", "CHECK THAT UPPER AND LOWER CASE ""E"" MAY " &
41 "APPEAR IN BASED LITERALS, WHEN USING COLONS " &
42 "IN PLACE OF THE SHARP SIGN");
44 IF INT_1 /= INT_2 THEN
45 FAILED ("UPPER AND LOWER CASE LETTERS NOT ALLOWED - 1");
46 END IF;
48 IF FLO_1 /= FLO_2 THEN
49 FAILED ("UPPER AND LOWER CASE LETTERS NOT ALLOWED - 2");
50 END IF;
52 INT_1 := 14:BC:E1;
53 INT_2 := 14:BC:e1;
54 FLO_1 := 16:DEF.AB:E0;
55 FLO_2 := 16:DEF.AB:e0;
57 IF INT_1 /= INT_2 THEN
58 FAILED ("UPPER AND LOWER CASE LETTERS NOT ALLOWED - 3");
59 END IF;
61 IF FLO_1 /= FLO_2 THEN
62 FAILED ("UPPER AND LOWER CASE LETTERS NOT ALLOWED - 4");
63 END IF;
65 RESULT;
66 END C2A008A;