summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gnat.dg/elab4_pkg.ads
blob: e8e5bab6c9a1b0a72975a5d3800bb395924332fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
package Elab4_Pkg is
   procedure ABE_Call;

   generic
   package ABE_Gen is
      procedure Force_Body;
   end ABE_Gen;

   task type ABE_Task;

   --------------------------------------------------
   -- Call to call, instantiation, task activation --
   --------------------------------------------------

   function Elaborator_1 return Boolean;
   function Elaborator_2 return Boolean;

   procedure Suppressed_Call_1;

   pragma Warnings ("L");
   procedure Suppressed_Call_2;
   pragma Warnings ("l");

   -----------------------------------------------------------
   -- Instantiation to call, instantiation, task activation --
   -----------------------------------------------------------

   function Elaborator_3 return Boolean;

   generic
   package Suppressed_Generic is
      procedure Force_Body;
   end Suppressed_Generic;

   -------------------------------------------------------------
   -- Task activation to call, instantiation, task activation --
   -------------------------------------------------------------

   function Elaborator_4 return Boolean;
   task type Suppressed_Task;
end Elab4_Pkg;