Require target lra in gcc.dg/pr108095.c
[official-gcc.git] / gcc / testsuite / gnat.dg / generic_inst10.adb
blob75bb65a7f1af3efefcf4a6e6da0a5f26ba7f86db
1 -- { dg-do compile }
3 with Generic_Inst10_Pkg; use Generic_Inst10_Pkg;
5 procedure Generic_Inst10 is
7 function Image (S : XString) return String is (S.To_String);
9 generic
10 type Left_Type (<>) is private;
11 type Right_Type (<>) is private;
12 with function Image (L : Left_Type) return String is <>;
13 with function Image (L : Right_Type) return String is <>;
14 procedure G (Left : Left_Type; Right : Right_Type);
16 procedure G (Left : Left_Type; Right : Right_Type) is
17 A : String := Image (Left) & Image (Right);
18 begin
19 null;
20 end;
22 procedure My_G is new G (XString, XString);
24 begin
25 null;
26 end;