compiler: give error for non-int arguments to make
[official-gcc.git] / gcc / testsuite / gnat.dg / renaming9.ads
blobce6b4ed09247d87a3fa01f4f1f32e624f2dac3f8
1 package Renaming9 is
3 pragma Elaborate_Body;
5 type Object is tagged null record;
7 type Pointer is access all Object'Class;
9 type Derived is new Object with record
10 I : Integer;
11 end record;
13 Ptr : Pointer := new Derived;
14 Obj : Derived renames Derived (Ptr.all);
16 end Renaming9;