summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gnat.dg/specs/access3.ads
blob: f7fbf7e1e7466e0416aa9d12d11b53886f39ea6f (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
--  { dg-do compile }

package access3 is
   type TF is access function return access procedure (P1 : Integer);
   
   type TAF is access protected function return access procedure (P1 : Integer);
   
   type TAF2 is access
     function return access protected procedure (P1 : Integer);
   
   type TAF3 is access
     protected function return access protected procedure (P1 : Integer);
   
   type TAF_Inf is
      access protected function return
         access function return
         access function return
         access function return
         access function return
         access function return
         access function return
         access function return
         access function return
      Integer;
end access3;