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.
27 -- Check that a compilation unit may not depend semantically
28 -- on two different versions of the same compilation unit.
29 -- Check the case where a generic instantiation depends on
30 -- a generic package that is changed.
33 -- This test compiles a generic package, a generic
34 -- instantiation of the generic package, and a main
35 -- procedure that withs the instantiated generic
36 -- package. Then, a new version of the first generic
37 -- package is compiled (in a separate file, simulating
38 -- editing and modification to the unit). Unless automatic
39 -- recompilation is supported, this test should fail to link.
40 -- Otherwise, the test should recompile and link the correct
41 -- version of the withed package and report "PASSED" at
44 -- SPECIAL REQUIREMENTS:
45 -- To build this test:
46 -- 1) Compile the file LA140240 (and include the results in the
48 -- 2) Compile the file LA140241 (and include the results in the
50 -- 3) Compile the file LA140242 (and include the results in the
52 -- 4) Compile the file LA140243 (and include the results in the
54 -- 5) Attempt to build an executable image.
55 -- 6) If an executable image results, run it.
58 -- This test consists of the following files:
64 -- PASS/FAIL CRITERIA:
65 -- The test passes if a link time error message reports that
66 -- LA140242 is missing or obsolete, or that LA14024_1 is
67 -- missing or obsolete (optional) and no executable image
68 -- results. The test also passes if an executable image is produced
69 -- and reports "PASSED" (in the case where the implementation supports
70 -- automatic recompilation).
74 -- 01 MAY 95 ACVC 1.12 LA5008U baseline version
75 -- 29 JUN 95 SAIC Initial version
76 -- 18 NOV 96 SAIC Modified unit names and prologue to conform
77 -- to coding conventions.
81 with Report; use Report;
85 TC_val : integer := 0;
86 Local_goodies : LA14024_1.Goodies;
88 Test ("LA14024", "Check that a compilation unit may not " &
89 "depend semantically on two different " &
90 "versions of the same compilation unit. " &
91 "Check the case where a generic " &
92 "instantiation depends on a generic " &
93 "package that is changed");
95 TC_val := Local_goodies.X;
98 Failed ("Revised generic package not used");
99 elsif TC_val /= -10 then
100 Failed ("Incorrect value returned");