2 -- { dg-options "-gnatws" }
4 procedure entry_queues
is
5 F1_Poe
: Integer := 18;
6 function F1
return Integer is
12 type T
is limited private;
13 with function Is_Ok
(X
: T
) return Boolean;
26 type Arr
is array (1 .. 2) of Poe
;
28 B
: Boolean := Is_Ok
(T
(X
(1)));
33 protected type Poe
(D3
: Integer := F1
) is
34 entry E
(D3
.. F1
); -- F1 evaluated
35 function Is_Ok
return Boolean;
38 Entry E
(for I
in D3
.. F1
) when True is
42 function Is_Ok
return Boolean is
47 function Is_Ok
(C
: Poe
) return Boolean is
51 procedure Chk
is new Check
(Poe
, Is_Ok
);