PR tree-optimization/81303
[official-gcc.git] / gcc / testsuite / gnat.dg / iface_test.adb
blobb47814f85d575f9d932b2ae61b568ce448c1eaf2
1 -- { dg-do compile }
2 package body Iface_Test is
3 protected SQLite_Safe is
4 function Prepare_Select
5 (DB : DT_1;
6 Iter : Standard.Iface_Test.Iface_2'Class)
7 return Standard.Iface_Test.Iface_2'Class;
8 end;
10 overriding procedure Prepare_Select
11 (DB : DT_1;
12 Iter : in out Standard.Iface_Test.Iface_2'Class)
14 begin
15 Iter := SQLite_Safe.Prepare_Select (DB, Iter); -- test
16 end;
18 protected body SQLite_Safe is
19 function Prepare_Select
20 (DB : DT_1;
21 Iter : Standard.Iface_Test.Iface_2'Class)
22 return Standard.Iface_Test.Iface_2'Class
24 begin
25 return Iter;
26 end;
27 end;
28 end;