Debian Codegraph @

gcc/testsuite/gnat.dg/warn23.adb

raw
1 -- { dg-do compile }
2
3 procedure Warn23 is
4
5 type Enum_Type is (A, B, C);
6
7 function Poll (E : out Enum_Type) return Boolean
8 with Convention => Ada,
9 Import => True;
10
11 E : Enum_Type;
12
13 begin
14 while Poll (E) loop
15 null;
16 end loop;
17 end;