Skip analyzer strndup test on hppa*-*-hpux*
[official-gcc.git] / gcc / testsuite / gnat.dg / warn17.adb
blob6d48e5416a54297543a46b8298695300449c3bec
1 -- { dg-do compile }
2 -- { dg-options "-Wall" }
4 with Ada.Iterator_Interfaces;
6 procedure Warn17 is
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);
20 begin
21 null;
22 end Warn17;