annotate gcc/testsuite/ada/acats/support/fc51c00.a @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 -- FC51C00.A
kono
parents:
diff changeset
2 --
kono
parents:
diff changeset
3 -- Grant of Unlimited Rights
kono
parents:
diff changeset
4 --
kono
parents:
diff changeset
5 -- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687,
kono
parents:
diff changeset
6 -- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained
kono
parents:
diff changeset
7 -- unlimited rights in the software and documentation contained herein.
kono
parents:
diff changeset
8 -- Unlimited rights are defined in DFAR 252.227-7013(a)(19). By making
kono
parents:
diff changeset
9 -- this public release, the Government intends to confer upon all
kono
parents:
diff changeset
10 -- recipients unlimited rights equal to those held by the Government.
kono
parents:
diff changeset
11 -- These rights include rights to use, duplicate, release or disclose the
kono
parents:
diff changeset
12 -- released technical data and computer software in whole or in part, in
kono
parents:
diff changeset
13 -- any manner and for any purpose whatsoever, and to have or permit others
kono
parents:
diff changeset
14 -- to do so.
kono
parents:
diff changeset
15 --
kono
parents:
diff changeset
16 -- DISCLAIMER
kono
parents:
diff changeset
17 --
kono
parents:
diff changeset
18 -- ALL MATERIALS OR INFORMATION HEREIN RELEASED, MADE AVAILABLE OR
kono
parents:
diff changeset
19 -- DISCLOSED ARE AS IS. THE GOVERNMENT MAKES NO EXPRESS OR IMPLIED
kono
parents:
diff changeset
20 -- WARRANTY AS TO ANY MATTER WHATSOEVER, INCLUDING THE CONDITIONS OF THE
kono
parents:
diff changeset
21 -- SOFTWARE, DOCUMENTATION OR OTHER INFORMATION RELEASED, MADE AVAILABLE
kono
parents:
diff changeset
22 -- OR DISCLOSED, OR THE OWNERSHIP, MERCHANTABILITY, OR FITNESS FOR A
kono
parents:
diff changeset
23 -- PARTICULAR PURPOSE OF SAID MATERIAL.
kono
parents:
diff changeset
24 --*
kono
parents:
diff changeset
25 --
kono
parents:
diff changeset
26 -- FOUNDATION DESCRIPTION:
kono
parents:
diff changeset
27 -- This foundation declares a hierarchy of tagged types, which includes
kono
parents:
diff changeset
28 -- both abstract and non-abstract types, and which have both abstract
kono
parents:
diff changeset
29 -- and non-abstract primitive subprograms.
kono
parents:
diff changeset
30 --
kono
parents:
diff changeset
31 -- CHANGE HISTORY:
kono
parents:
diff changeset
32 -- 06 Dec 94 SAIC ACVC 2.0
kono
parents:
diff changeset
33 -- 03 Nov 95 SAIC ACVC 2.0.1 fixes: Deleted primitive operation Proc
kono
parents:
diff changeset
34 -- of Concrete_Root.
kono
parents:
diff changeset
35 -- 11 Aug 96 SAIC ACVC 2.1: Changed procedure bodies to update
kono
parents:
diff changeset
36 -- actual parameters.
kono
parents:
diff changeset
37 --
kono
parents:
diff changeset
38 --!
kono
parents:
diff changeset
39
kono
parents:
diff changeset
40 package FC51C00 is
kono
parents:
diff changeset
41
kono
parents:
diff changeset
42 --
kono
parents:
diff changeset
43 -- Non-abstract ultimate ancestor type:
kono
parents:
diff changeset
44 --
kono
parents:
diff changeset
45
kono
parents:
diff changeset
46 type Concrete_Root is tagged null record;
kono
parents:
diff changeset
47
kono
parents:
diff changeset
48 function Func (P: Concrete_Root) return Concrete_Root; -- Abstract when
kono
parents:
diff changeset
49 -- inherited.
kono
parents:
diff changeset
50
kono
parents:
diff changeset
51
kono
parents:
diff changeset
52 --
kono
parents:
diff changeset
53 -- Abstract descendant of non-abstract ultimate ancestor:
kono
parents:
diff changeset
54 --
kono
parents:
diff changeset
55
kono
parents:
diff changeset
56 type Abstract_Child is abstract new Concrete_Root with null record;
kono
parents:
diff changeset
57
kono
parents:
diff changeset
58 -- Inherits:
kono
parents:
diff changeset
59 -- function Func (P: Abstract_Child) return Abstract_Child is abstract;
kono
parents:
diff changeset
60
kono
parents:
diff changeset
61 procedure Proc (P: in out Abstract_Child) is abstract; -- Abstract.
kono
parents:
diff changeset
62 procedure New_Proc (P : out Abstract_Child) is abstract; -- Abstract.
kono
parents:
diff changeset
63
kono
parents:
diff changeset
64
kono
parents:
diff changeset
65
kono
parents:
diff changeset
66 --
kono
parents:
diff changeset
67 -- Non-abstract descendant of abstract descendant:
kono
parents:
diff changeset
68 --
kono
parents:
diff changeset
69
kono
parents:
diff changeset
70 type Concrete_GrandChild is new Abstract_Child with null record;
kono
parents:
diff changeset
71
kono
parents:
diff changeset
72 function Func (P: Concrete_GrandChild) return Concrete_GrandChild;
kono
parents:
diff changeset
73
kono
parents:
diff changeset
74 procedure Proc (P: in out Concrete_GrandChild);
kono
parents:
diff changeset
75 procedure New_Proc (P : out Concrete_GrandChild);
kono
parents:
diff changeset
76
kono
parents:
diff changeset
77
kono
parents:
diff changeset
78 end FC51C00;
kono
parents:
diff changeset
79
kono
parents:
diff changeset
80
kono
parents:
diff changeset
81 --===================================================================--
kono
parents:
diff changeset
82
kono
parents:
diff changeset
83
kono
parents:
diff changeset
84 package body FC51C00 is
kono
parents:
diff changeset
85
kono
parents:
diff changeset
86 Value : Concrete_GrandChild;
kono
parents:
diff changeset
87
kono
parents:
diff changeset
88
kono
parents:
diff changeset
89 function Func (P: Concrete_Root) return Concrete_Root is
kono
parents:
diff changeset
90 begin
kono
parents:
diff changeset
91 return P;
kono
parents:
diff changeset
92 end Func;
kono
parents:
diff changeset
93
kono
parents:
diff changeset
94
kono
parents:
diff changeset
95 function Func (P: Concrete_GrandChild) return Concrete_GrandChild is
kono
parents:
diff changeset
96 begin
kono
parents:
diff changeset
97 return P;
kono
parents:
diff changeset
98 end Func;
kono
parents:
diff changeset
99
kono
parents:
diff changeset
100
kono
parents:
diff changeset
101 procedure Proc (P: in out Concrete_GrandChild) is
kono
parents:
diff changeset
102 begin
kono
parents:
diff changeset
103 P := Value;
kono
parents:
diff changeset
104 end Proc;
kono
parents:
diff changeset
105
kono
parents:
diff changeset
106
kono
parents:
diff changeset
107 procedure New_Proc (P : out Concrete_GrandChild) is
kono
parents:
diff changeset
108 begin
kono
parents:
diff changeset
109 P := Value;
kono
parents:
diff changeset
110 end New_Proc;
kono
parents:
diff changeset
111
kono
parents:
diff changeset
112 end FC51C00;