PR debug/66535
[official-gcc.git] / gcc / testsuite / gnat.dg / opt27_pkg.ads
blob01b3a909c6d09fad07249c42ec2fd692e204b760
1 generic
3 type Element_T is private;
5 package Opt27_Pkg is
7 type Node_T is private;
9 type List_T is private;
11 function Is_Null (Node : in Node_T) return Boolean;
13 generic
15 type Template_T is private;
17 with function Is_Match
18 (Element : in Element_T;
19 Template : in Template_T) return Boolean is <>;
21 function Find_Elem (Template : Template_T; List : List_T) return Node_T;
23 private
25 type Node_Rec_T;
26 type Node_T is access Node_Rec_T;
28 type List_T is record
29 First_Node : Node_T := null;
30 Last_Node : Node_T := null;
31 end record;
33 end Opt27_Pkg;