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/] [support/] [fc51d00.a] - Blame information for rev 294

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 294 jeremybenn
-- FC51D00.A
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
-- FOUNDATION DESCRIPTION:
27
--      This foundation defines a generic list abstraction. List elements can
28
--      be of any (nonlimited) type. Lists are implemented as arrays of
29
--      pointers and are only two elements in length.
30
--
31
-- CHANGE HISTORY:
32
--      06 Dec 94   SAIC    ACVC 2.0
33
--
34
--!
35
 
36
generic
37
   type Element_Type (<>) is private;
38
package FC51D00 is  -- This package simulates a generic list abstraction.
39
 
40
   -- The definition of List_Type below is purely artificial; its validity
41
   -- in the context of the abstraction is irrelevant to the feature being
42
   -- tested.
43
 
44
   type Element_Ptr is access Element_Type;
45
 
46
   subtype List_Size is Natural range 1 .. 2;
47
   type List_Type is array (List_Size) of Element_Ptr;
48
 
49
   function  View_Element (I : List_Size; L : List_Type) return Element_Type;
50
 
51
   procedure Write_Element (I : in     List_Size;
52
                            L : in out List_Type;
53
                            E : in     Element_Type);
54
 
55
   -- ... Other list operations for Element_Type.
56
 
57
end FC51D00;
58
 
59
 
60
     --==================================================================--
61
 
62
 
63
package body FC51D00 is
64
 
65
   -- The implementations of the operations below are purely artificial; the
66
   -- validity of their implementations in the context of the abstraction is
67
   -- irrelevant to the feature being tested.
68
 
69
   function View_Element (I : List_Size; L : List_Type) return Element_Type is
70
   begin
71
      return L(I).all;
72
   end View_Element;
73
 
74
 
75
   procedure Write_Element (I : in     List_Size;
76
                            L : in out List_Type;
77
                            E : in     Element_Type) is
78
   begin
79
      L(I) := new Element_Type'(E);
80
   end Write_Element;
81
 
82
end FC51D00;

powered by: WebSVN 2.1.0

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