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/] [c8/] [c83024e0.ada] - Blame information for rev 309

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 294 jeremybenn
-- C83024E0.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 DECLARATION IN THE DECLARATIVE REGION OF A GENERIC
27
--     PACKAGE HIDES AN OUTER DECLARATION OF A HOMOGRAPH. ALSO CHECK
28
--     THAT THE OUTER DECLARATION IS DIRECTLY VISIBLE IN BOTH
29
--     DECLARATIVE REGIONS BEFORE THE DECLARATION OF THE INNER HOMOGRAPH
30
--     AND THE OUTER DECLARATION IS VISIBLE BY SELECTION AFTER THE INNER
31
--     HOMOGRAPH DECLARATION, IF THE GENERIC PACKAGE BODY IS SEPARATELY
32
--     COMPILED, BUT NOT AS A SUBUNIT.
33
 
34
-- HISTORY:
35
--     BCB 08/30/88  CREATED ORIGINAL TEST.
36
-- PWN 11/30/94 ADDED A PROCEDURE TO KEEP PACKAGE BODIES LEGAL.
37
 
38
GENERIC
39
     TYPE T IS PRIVATE;
40
     X : T;
41
FUNCTION C83024E_GEN_FUN RETURN T;
42
 
43
FUNCTION C83024E_GEN_FUN RETURN T IS
44
BEGIN
45
     RETURN X;
46
END C83024E_GEN_FUN;
47
 
48
WITH REPORT; USE REPORT;
49
PRAGMA ELABORATE(REPORT);
50
PACKAGE C83024E_P1 IS
51
     A : INTEGER := IDENT_INT(2);
52
     B : INTEGER := A;
53
 
54
     PROCEDURE REQUIRE_BODY;
55
 
56
     GENERIC
57
          X : IN OUT INTEGER;
58
     PACKAGE C83024E_PACK1 IS
59
          C : INTEGER := A;
60
          A : INTEGER := IDENT_INT(3);
61
     END C83024E_PACK1;
62
END C83024E_P1;
63
 
64
WITH REPORT; USE REPORT;
65
PRAGMA ELABORATE(REPORT);
66
PACKAGE C83024E_P2 IS
67
     A : INTEGER := IDENT_INT(2);
68
     B : INTEGER := A;
69
     OBJ : INTEGER := IDENT_INT(3);
70
 
71
     PROCEDURE REQUIRE_BODY;
72
 
73
     GENERIC
74
          X : IN INTEGER := A;
75
          A : IN OUT INTEGER;
76
     PACKAGE C83024E_PACK2 IS
77
          C : INTEGER := A;
78
     END C83024E_PACK2;
79
END C83024E_P2;
80
 
81
WITH REPORT; USE REPORT;
82
PRAGMA ELABORATE(REPORT);
83
PACKAGE C83024E_P3 IS
84
     A : INTEGER := IDENT_INT(2);
85
     B : INTEGER := A;
86
 
87
     PROCEDURE REQUIRE_BODY;
88
 
89
     GENERIC
90
          X : IN OUT INTEGER;
91
     PACKAGE C83024E_PACK3 IS
92
     END C83024E_PACK3;
93
END C83024E_P3;
94
 
95
WITH REPORT; USE REPORT;
96
WITH C83024E_GEN_FUN;
97
PRAGMA ELABORATE(REPORT,C83024E_GEN_FUN);
98
PACKAGE C83024E_P4 IS
99
     OBJ : INTEGER := IDENT_INT(1);
100
     FLO : FLOAT := 6.25;
101
 
102
     PROCEDURE REQUIRE_BODY;
103
 
104
     FUNCTION F IS NEW C83024E_GEN_FUN (INTEGER, OBJ);
105
     FUNCTION F IS NEW C83024E_GEN_FUN (FLOAT, FLO);
106
 
107
     GENERIC
108
          X : IN OUT INTEGER;
109
          F : IN FLOAT;
110
     PACKAGE C83024E_PACK4 IS
111
     END C83024E_PACK4;
112
END C83024E_P4;

powered by: WebSVN 2.1.0

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