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.
26 -- CHECK THAT A DERIVED SUBPROGRAM IS VISIBLE AND FURTHER DERIVABLE
27 -- UNDER APPROPRIATE CIRCUMSTANCES.
29 -- CHECK WHEN THE DERIVED SUBPROGRAM IS IMPLICITLY DECLARED IN THE
30 -- VISIBLE PART OF A PACKAGE AND A HOMOGRAPHIC SUBPROGRAM IS LATER
31 -- DECLARED EXPLICITLY IN THE SAME VISIBLE PART.
34 -- JRK 09/08/87 CREATED ORIGINAL TEST.
36 WITH REPORT
; USE REPORT
;
41 TYPE T
IS RANGE -100 .. 100;
47 FUNCTION F
RETURN T
IS
49 RETURN T
(IDENT_INT
(1));
54 TEST
("C34014A", "CHECK THAT A DERIVED SUBPROGRAM IS VISIBLE " &
55 "AND FURTHER DERIVABLE UNDER APPROPRIATE " &
56 "CIRCUMSTANCES. CHECK WHEN THE DERIVED " &
57 "SUBPROGRAM IS IMPLICITLY DECLARED IN THE " &
58 "VISIBLE PART OF A PACKAGE AND A HOMOGRAPHIC " &
59 "SUBPROGRAM IS LATER DECLARED EXPLICITLY IN " &
60 "THE SAME VISIBLE PART");
62 -----------------------------------------------------------------
64 COMMENT
("NEW SUBPROGRAM DECLARED BY SUBPROGRAM DECLARATION");
82 FUNCTION F
RETURN QT
IS
84 RETURN QT
(IDENT_INT
(2));
94 FAILED
("OLD SUBPROGRAM NOT VISIBLE - SUBPROG " &
99 FAILED
("NEW SUBPROGRAM NOT VISIBLE - SUBPROG " &
104 FAILED
("NEW SUBPROGRAM NOT DERIVED - SUBPROG " &
118 FAILED
("NEW SUBPROGRAM NOT VISIBLE - SUBPROG DECL - 2");
122 FAILED
("NEW SUBPROGRAM NOT DERIVED - SUBPROG DECL - 2");
126 -----------------------------------------------------------------
128 COMMENT
("NEW SUBPROGRAM DECLARED BY RENAMING");
135 FUNCTION G
RETURN QT
;
136 FUNCTION F
RETURN QT
RENAMES G
;
147 FUNCTION G
RETURN QT
IS
149 RETURN QT
(IDENT_INT
(2));
159 FAILED
("OLD SUBPROGRAM NOT VISIBLE - RENAMING");
163 FAILED
("NEW SUBPROGRAM NOT VISIBLE - RENAMING - " &
168 FAILED
("NEW SUBPROGRAM NOT DERIVED - RENAMING - " &
182 FAILED
("NEW SUBPROGRAM NOT VISIBLE - RENAMING - 2");
186 FAILED
("NEW SUBPROGRAM NOT DERIVED - RENAMING - 2");
190 -----------------------------------------------------------------
192 COMMENT
("NEW SUBPROGRAM DECLARED BY GENERIC INSTANTIATION");
200 FUNCTION G
RETURN T
IS
202 RETURN T
(IDENT_INT
(2));
208 FUNCTION F
IS NEW G
(QT
);
219 FAILED
("OLD SUBPROGRAM NOT VISIBLE - " &
224 FAILED
("NEW SUBPROGRAM NOT VISIBLE - " &
225 "INSTANTIATION - 1");
229 FAILED
("NEW SUBPROGRAM NOT DERIVED - " &
230 "INSTANTIATION - 1");
243 FAILED
("NEW SUBPROGRAM NOT VISIBLE - INSTANTIATION - " &
248 FAILED
("NEW SUBPROGRAM NOT DERIVED - INSTANTIATION - " &
253 -----------------------------------------------------------------