3 -- Grant of Unlimited Rights
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
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.
25 -- CHECK THAT 'PRED' AND 'SUCC' YIELD THE CORRECT RESULTS WHEN
26 -- THE PREFIX IS A FORMAL DISCRETE TYPE WHOSE ACTUAL ARGUMENT IS
27 -- AN ENUMERATION TYPE OTHER THAN A BOOLEAN OR A CHARACTER TYPE.
31 WITH REPORT
; USE REPORT
;
35 TYPE ENUM
IS (A
, BC
, ABC
, A_B_C
, ABCD
);
37 TYPE NEWENUM
IS NEW ENUM
;
40 TEST
("C35502H", "CHECK THAT 'PRED' AND 'SUCC' YIELD THE " &
41 "CORRECT RESULTS WHEN THE PREFIX IS A " &
42 "FORMAL DISCRETE TYPE WHOSE ACTUAL " &
43 "ARGUMENT IS AN ENUMERATION TYPE OTHER THAN " &
44 "A CHARACTER OR A BOOLEAN TYPE" );
53 SUBTYPE SE
IS E
RANGE E
'VAL(0) .. E
'VAL(1);
55 FOR I
IN E
'VAL (1) .. E
'VAL (4) LOOP
57 E
'VAL (E
'POS (I
) - 1) THEN
58 FAILED
("INCORRECT " & STR
& "'PRED(" &
63 FOR I
IN E
'VAL (0) .. E
'VAL (3) LOOP
65 E
'VAL (E
'POS (I
) + 1) THEN
66 FAILED
("INCORRECT " & STR
& "'SUCC(" &
73 PROCEDURE PE
IS NEW P
( ENUM
, "ENUM" );
74 PROCEDURE PN
IS NEW P
( NEWENUM
, "NEWENUM" );