2 -- { dg-options "-Wall" }
4 with Ada
.Iterator_Interfaces
;
8 type Cursor
is null record;
10 function Has_Element
(Position
: Cursor
) return Boolean;
12 function Has_Element
(Position
: Cursor
) return Boolean is (True);
14 package My_Iterator
is
15 new Ada
.Iterator_Interfaces
(Cursor
, Has_Element
);
17 type Iterator
is abstract new My_Iterator
.Forward_Iterator
with null record;
19 pragma Unreferenced
(Iterator
);