1-- C45613A.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 CONSTRAINT_ERROR IS RAISED 26-- BY "**" FOR INTEGERS WHEN THE RESULT EXCEEDS THE RANGE 27-- OF THE BASE TYPE. 28 29 30-- *** NOTE: This test has been modified since ACVC version 1.11 to -- 9X 31-- *** remove incompatibilities associated with the transition -- 9X 32-- *** to Ada 9X. -- 9X 33-- *** -- 9X 34 35-- H. TILTON 10/06/86 36-- MRM 03/30/93 REMOVED NUMERIC_ERROR FOR 9X COMPATIBILITY 37 38WITH REPORT; USE REPORT; 39PROCEDURE C45613A IS 40 41BEGIN 42 TEST ("C45613A","CHECK THAT CONSTRAINT_ERROR " & 43 "IS RAISED BY ""**"" FOR INTEGERS WHEN THE " & 44 "RESULT EXCEEDS THE RANGE OF THE BASE TYPE"); 45 46 DECLARE 47 INT : INTEGER; 48 BEGIN 49 INT := IDENT_INT(INTEGER'LAST ** IDENT_INT(2)); 50 FAILED ("NO EXCEPTION FOR SECOND POWER OF INTEGER'LAST"); 51 52 EXCEPTION 53 WHEN CONSTRAINT_ERROR => 54 NULL; 55 WHEN OTHERS => 56 FAILED ("WRONG EXCEPTION RAISED FOR " & 57 "SECOND POWER OF " & 58 "INTEGER'LAST"); 59 END; 60 61 DECLARE 62 INT : INTEGER; 63 BEGIN 64 INT := IDENT_INT(INTEGER'FIRST ** IDENT_INT(3)); 65 FAILED ("NO EXCEPTION FOR THIRD POWER OF INTEGER'FIRST"); 66 67 EXCEPTION 68 WHEN CONSTRAINT_ERROR => 69 NULL; 70 WHEN OTHERS => 71 FAILED ("WRONG EXCEPTION RAISED FOR " & 72 "THIRD POWER OF " & 73 "INTEGER'FIRST"); 74 75 END; 76 77 RESULT; 78 79END C45613A; 80