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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [ada/] [acats/] [tests/] [l/] [la140011.am] - Blame information for rev 720

Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

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