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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [ada/] [acats/] [tests/] [ca/] [ca1020e3.ada] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
-- CA1020E3M.ADA
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
-- OBJECTIVE:
26
--     CHECK THAT A SUBPROGRAM LIBRARY UNIT CAN BE REPLACED BY A GENERIC
27
--     INSTANTIATION HAVING THE SAME IDENTIFIER.  THIS FILE CONTAINS
28
--     GENERIC UNITS TO BE INSTANTIATED AS LIBRARY UNITS.
29
 
30
-- SEPARATE FILES ARE:
31
--     CA1020E0  -- GENERIC UNITS GENPROC_CA1020E AND GENFUNC_CA1020E.
32
--     CA1020E1  -- SUBPROGRAM LIBRARY UNIT BODIES (CA1020E_PROC1,
33
--                  CA1020E_FUNC1, CA1020E_PROC2, CA1020E_FUNC2).
34
--     CA1020E2  -- INSTANTIATIONS REPLACING UNITS COMPILED IN CA1020E1.
35
--     CA1020E3M -- MAIN PROGRAM.
36
 
37
-- HISTORY:
38
--     JBG 05/28/85  CREATED ORIGINAL TEST.
39
--     JET 07/29/88  ADDED CASES IN WHICH SUBPROGRAM PROFILES ARE NOT
40
--                   THE SAME AND ALSO WHEN SUBPROGRAM IS FIRST
41
--                   DECLARED WITHOUT A BODY.
42
 
43
WITH REPORT; USE REPORT;
44
WITH CA1020E_PROC1, CA1020E_FUNC1, CA1020E_PROC2, CA1020E_FUNC2;
45
PROCEDURE CA1020E3M IS
46
     TEMP : INTEGER := 0;
47
BEGIN
48
     TEST ("CA1020E", "CHECK THAT A SUBPROGRAM LIBRARY UNIT CAN BE " &
49
                      "REPLACED BY A GENERIC INSTANTIATION HAVING " &
50
                      "THE SAME IDENTIFIER");
51
 
52
     CA1020E_PROC1 (TEMP);
53
     IF TEMP /= IDENT_INT(1) THEN
54
          FAILED ("INSTANTIATION DID NOT REPLACE PROCEDURE");
55
     END IF;
56
 
57
     IF CA1020E_FUNC1 /= IDENT_INT(2) THEN
58
          FAILED ("INSTANTIATION DID NOT REPLACE FUNCTION");
59
     END IF;
60
 
61
     CA1020E_PROC2 (TEMP);
62
     IF TEMP /= IDENT_INT(5) THEN
63
          FAILED ("INSTANTIATION DID NOT REPLACE PROCEDURE");
64
     END IF;
65
 
66
     IF CA1020E_FUNC2 /= IDENT_INT(2) THEN
67
          FAILED ("INSTANTIATION DID NOT REPLACE FUNCTION");
68
     END IF;
69
 
70
     RESULT;
71
END CA1020E3M;

powered by: WebSVN 2.1.0

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