1-- C95088A.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 ACTUAL PARAMETERS ARE EVALUATED AND IDENTIFIED AT THE 26-- TIME OF CALL. 27 28-- GLH 7/10/85 29 30WITH REPORT; USE REPORT; 31 32PROCEDURE C95088A IS 33 34 TYPE VECTOR IS ARRAY (1..10) OF INTEGER; 35 TYPE PTRINT IS ACCESS INTEGER; 36 37 I : INTEGER := 1; 38 A : VECTOR := (1,2,3,4,5,6,7,8,9,10); 39 P1 : PTRINT := NEW INTEGER'(2); 40 P2 : PTRINT := P1; 41 42 TASK T1 IS 43 ENTRY E1 (I : OUT INTEGER; J : OUT INTEGER); 44 END T1; 45 46 TASK BODY T1 IS 47 BEGIN 48 ACCEPT E1 (I : OUT INTEGER; J : OUT INTEGER) DO 49 I := 10; 50 J := -1; 51 END E1; 52 END T1; 53 54 TASK T2 IS 55 ENTRY E2 (P : OUT PTRINT; I : OUT INTEGER); 56 END T2; 57 58 TASK BODY T2 IS 59 BEGIN 60 ACCEPT E2 (P : OUT PTRINT; I : OUT INTEGER) DO 61 P := NEW INTEGER'(3); 62 I := 5; 63 END E2; 64 END T2; 65 66BEGIN 67 68 TEST ("C95088A", "CHECK THAT ACTUAL PARAMETERS ARE EVALUATED " & 69 "AND IDENTIFIED AT THE TIME OF CALL"); 70 71 COMMENT ("FIRST CALL"); 72 T1.E1 (I, A(I)); 73 IF (A /= (-1,2,3,4,5,6,7,8,9,10)) THEN 74 FAILED ("A(I) EVALUATED UPON RETURN"); 75 END IF; 76 77 COMMENT ("SECOND CALL"); 78 T2.E2 (P1, P1.ALL); 79 IF (P2.ALL /= 5) THEN 80 FAILED ("P1.ALL EVALUATED UPON RETURN"); 81 END IF; 82 83 RESULT; 84 85END C95088A; 86