aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gnat.dg/elab5_pkg.ads
blob: 78da6e68e94bfee05ee51c35b598a42b3ccfae19 (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
42
43
44
45
46
47
package Elab5_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;
   function Elaborator_3 return Boolean;

   procedure Suppressed_Call_1;

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

   procedure Suppressed_Call_3;
   pragma Warnings (Off, Suppressed_Call_3);

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

   function Elaborator_4 return Boolean;

   generic
   package Suppressed_Generic is
      procedure Force_Body;
   end Suppressed_Generic;

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

   function Elaborator_5 return Boolean;
   function Elaborator_6 return Boolean;

   task type Suppressed_Task;
end Elab5_Pkg;