aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gnat.dg/specs/limited_with4_pkg.ads
blob: 3d690bde079c6d0cf243da4ea0dd034729d48076 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
-- { dg-do compile }
-- { dg-options "-gnatc" }

limited with Limited_With4;

package Limited_With4_Pkg is

   type Object is tagged null record;
   type Object_Ref is access all Object;
   type Class_Ref is access all Object'Class;

   function Func return Limited_With4.Class_Ref;
   procedure Proc (Arg : Limited_With4.Class_Ref);

end Limited_With4_Pkg;