Imported Upstream version 4.8.1
[platform/upstream/gcc48.git] / gcc / testsuite / gnat.dg / specs / renaming2_pkg3.ads
1 -- { dg-excess-errors "no code generated" }
2
3 generic
4
5   type Base_Index_T is range <>;
6
7   type Value_T is private;
8
9 package Renaming2_Pkg3 is
10
11   type T is private;
12
13   subtype Length_T is Base_Index_T range 0 .. Base_Index_T'Last;
14
15   function Value (L : Length_T) return Value_T;
16
17   function Next return Length_T;
18
19 private
20
21   type Obj_T is null record;
22
23   type T is access Obj_T;
24
25 end Renaming2_Pkg3;