1-- C43214C.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 THE LOWER BOUND FOR THE STRING LITERAL IS DETERMINED BY 26-- THE APPLICABLE INDEX CONSTRAINT, WHEN ONE EXISTS. 27 28-- EG 02/10/84 29 30WITH REPORT; 31 32PROCEDURE C43214C IS 33 34 USE REPORT; 35 36BEGIN 37 38 TEST("C43214C", "CONSTRAINED ARRAY FORMAL GENERIC " & 39 "PARAMETER"); 40 41 BEGIN 42 43CASE_B : DECLARE 44 45 SUBTYPE STB IS STRING(5 .. 8); 46 47 GENERIC 48 B1 : STB; 49 PROCEDURE PROC1; 50 51 PROCEDURE PROC1 IS 52 BEGIN 53 IF B1'FIRST /= 5 THEN 54 FAILED ("LOWER BOUND INCORRECT"); 55 ELSIF B1'LAST /= 8 THEN 56 FAILED ("UPPER BOUND INCORRECT"); 57 ELSIF B1 /= "ABCD" THEN 58 FAILED ("ARRAY DOES NOT " & 59 "CONTAIN THE CORRECT VALUES"); 60 END IF; 61 END; 62 63 PROCEDURE PROC2 IS NEW PROC1 ("ABCD"); 64 65 BEGIN 66 67 PROC2; 68 69 END CASE_B; 70 71 END; 72 73 RESULT; 74 75END C43214C; 76