1-- CC3011D.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 WHEN A GENERIC PACKAGE INSTANTIATION CONTAINS DECLARATIONS 26-- OF SUBPROGRAMS WITH THE SAME SPECIFICATIONS, THE CALLS TO THE 27-- SUBPROGRAMS ARE NOT AMBIGIOUS WITHIN THE GENERIC BODY. 28 29-- SPS 5/7/82 30-- SPS 2/7/83 31 32WITH REPORT; USE REPORT; 33 34PROCEDURE CC3011D IS 35BEGIN 36 TEST ("CC3011D", "SUBPROGRAMS WITH SAME SPECIFICATIONS NOT" 37 & " AMBIGIOUS WITHIN GENERIC BODY"); 38 39 DECLARE 40 TYPE FLAG IS (PRT,PRS); 41 XX : FLAG; 42 43 GENERIC 44 TYPE S IS PRIVATE; 45 TYPE T IS PRIVATE; 46 V1 : S; 47 V2 : T; 48 PACKAGE P1 IS 49 PROCEDURE PR(X : S); 50 PROCEDURE PR(X : T); 51 END P1; 52 53 PACKAGE BODY P1 IS 54 PROCEDURE PR (X : S) IS 55 BEGIN 56 XX := PRS; 57 END; 58 59 PROCEDURE PR (X : T ) IS 60 BEGIN 61 XX := PRT; 62 END; 63 64 BEGIN 65 XX := PRT; 66 PR (V1); 67 IF XX /= PRS THEN 68 FAILED ("WRONG BINDING FOR PR WITH TYPE S"); 69 END IF; 70 XX := PRS; 71 PR (V2); 72 IF XX /= PRT THEN 73 FAILED ("WRONG BINDING FOR PR WITH TYPE T"); 74 END IF; 75 END P1; 76 77 PACKAGE PAK IS NEW P1 (INTEGER, INTEGER, 1, 2); 78 79 BEGIN 80 NULL; 81 END; 82 83 RESULT; 84END CC3011D; 85