OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [ada/] [acats/] [tests/] [l/] [la140072.am] - Blame information for rev 294

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 294 jeremybenn
-- LA140072.AM
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
--
26
-- OBJECTIVE:
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 separate procedure body depends on
30
--      a non-generic package specification that is changed.
31
--
32
-- TEST DESCRIPTION:
33
--      This test compiles a package specification, a procedure,
34
--      the separate procedure body and a main procedure that
35
--      withs the first package.  Then, a new version of the
36
--      first package specification is compiled (in a separate
37
--      file, simulating editing and modification of the unit).
38
--      Unless automatic recompilation is supported, this test
39
--      should fail to link.  Otherwise, the test should
40
--      recompile and link the correct version of the withed
41
--      package and report "PASSED" at execution time.
42
--
43
-- SPECIAL REQUIREMENTS:
44
--      To build this test:
45
--         1) Compile the file LA140070 (and include the results in the
46
--            program library).
47
--         2) Compile the file LA140071 (and include the results in the
48
--            program library).
49
--         3) Compile the file LA140072 (and include the results in the
50
--            program library).
51
--         4) Compile the file LA140073 (and include the results in the
52
--            program library).
53
--         5) Attempt to build an executable image.
54
--         6) If an executable image results, run it.
55
--
56
-- TEST FILES:
57
--      This test consists of the following files:
58
--         LA140070.A
59
--         LA140071.A
60
--      -> LA140072.AM
61
--         LA140073.A
62
--
63
-- PASS/FAIL CRITERIA:
64
--      The test passes if a link time error message reports that
65
--      LA14007_1.LA14007_2 is missing or obsolete and no executable
66
--      image results.  The test also passes if an executable image is
67
--      produced and reports "PASSED" (in the case where the implementation
68
--      supports automatic recompilation).
69
--
70
--
71
-- CHANGE HISTORY:
72
--     01 MAY 95   ACVC 1.12   LA5007L baseline version
73
--     12 MAY 95   SAIC        Initial version
74
--     17 NOV 96   SAIC        Modified unit names and prologue to conform
75
--                             to coding conventions.
76
--
77
--!
78
 
79
 
80
with Report; use Report;
81
with LA14007_1;
82
 
83
procedure LA140072 is
84
     TC_Val : integer := 0;
85
begin
86
     Test ("LA14007", "Check that a compilation unit may not " &
87
                      "depend semantically on two different " &
88
                      "versions of the same compilation unit.  " &
89
                      "Check the case where a separate procedure " &
90
                      "body depends on a non-generic package " &
91
                      "specification that is changed");
92
 
93
     LA14007_1 (TC_Val);
94
 
95
     if TC_Val = 12 then
96
          Failed ("Obsolete unit used in elaboration");
97
     elsif TC_Val /= 3 then
98
          Failed ("Incorrect test value returned");
99
     end if;
100
 
101
     Result;
102
end LA140072;

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.