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/] [fa11c00.a] - Blame information for rev 304

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

Line No. Rev Author Line
1 294 jeremybenn
-- FA11C00.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 declares parent types and operations that can
28
--      be inherited by its children.
29
--
30
-- CHANGE HISTORY:
31
--      06 Dec 94   SAIC    ACVC 2.0
32
--
33
--!
34
 
35
package FA11C00_0 is         -- Package Animal
36
 
37
   type Kilogram_Weight_Type is new Natural;
38
   subtype Species_Name_Type is String (1 .. 20);
39
 
40
   type Animal is tagged
41
      record
42
         Common_Name : Species_Name_Type;
43
         Weight      : Kilogram_Weight_Type;
44
      end record;
45
 
46
   function Image (A : Animal) return String;
47
 
48
end FA11C00_0;               -- Package Animal
49
 
50
     --=================================================================--
51
 
52
package body FA11C00_0 is    -- Package body Animal
53
 
54
   function Image (A : Animal) return String is
55
   begin
56
      return ("Animal Species:  " & A.Common_Name);
57
   end Image;
58
 
59
end FA11C00_0;               -- Package body Animal
60
 
61
     --=================================================================--
62
 
63
package FA11C00_0.FA11C00_1 is         -- Package Animal.Mammal
64
 
65
   type Hair_Color_Type is (Black, Brown, Blonde, Grey, White, Red);
66
 
67
   type Mammal is new Animal with
68
      record
69
         Hair_Color : Hair_Color_Type;
70
      end record;
71
 
72
   function Image (M : Mammal) return String;
73
 
74
end FA11C00_0.FA11C00_1;               -- Package Animal.Mammal
75
 
76
     --=================================================================--
77
 
78
package body FA11C00_0.FA11C00_1 is    -- Package body Animal.Mammal
79
 
80
   function Image (M : Mammal) return String is
81
   begin
82
      return ("Mammal Species:  " & M.Common_Name);
83
   end Image;
84
 
85
end FA11C00_0.FA11C00_1;               -- Package body Animal.Mammal
86
 
87
     --=================================================================--
88
 
89
package FA11C00_0.FA11C00_1.FA11C00_2 is -- Package Animal.Mammal.Primate
90
 
91
   type Habitat_Type is (Arboreal, Terrestrial);
92
 
93
   type Primate is new Mammal with
94
      record
95
         Habitat : Habitat_Type;
96
      end record;
97
 
98
   function Image (P : Primate) return String;
99
 
100
end FA11C00_0.FA11C00_1.FA11C00_2;       -- Package Animal.Mammal.Primate
101
 
102
     --=================================================================--
103
 
104
                                         -- Package body Animal.Mammal.Primate
105
package body FA11C00_0.FA11C00_1.FA11C00_2 is
106
 
107
   function Image (P : Primate) return String is
108
   begin
109
      return ("Primate Species: " & P.Common_Name);
110
   end Image;
111
 
112
end FA11C00_0.FA11C00_1.FA11C00_2;       -- Package body Animal.Mammal.Primate

powered by: WebSVN 2.1.0

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