aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gnat.dg/type_conv.adb
blob: 82a01495e12fa35eb6d13544cbe55d17eb0e3b3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
-- { dg-do compile }

procedure type_conv is
   type Str is new String;
   generic
   package G is private end;
   package body G is
      Name : constant String := "it";
      Full_Name : Str := Str (Name & " works");
   end G;
   package Inst is new G;
begin
   null;
end;