x86: Tune Skylake, Cannonlake and Icelake as Haswell
[official-gcc.git] / gcc / testsuite / gnat.dg / entry_queues2.adb
bloba1445cebdcb386f8e4b2e3eac9be8953d781c2bc
1 -- { dg-do compile }
3 procedure Entry_Queues2 is
5 F1 : Integer := 17;
7 generic
8 type T is limited private;
9 procedure Check;
11 procedure Check is
12 begin
13 declare
14 type Poe is new T;
15 begin
16 declare
17 type Arr is array (1 .. 2) of Poe;
18 X : Arr;
19 pragma Unreferenced (X);
20 begin
21 null;
22 end;
23 end;
24 end;
26 begin
28 declare
29 protected type Poe (D3 : Integer := F1) is
30 entry E (D3 .. F1); -- F1 evaluated
31 end Poe;
32 protected body Poe is
33 entry E (for I in D3 .. F1) when True is
34 begin
35 null;
36 end E;
37 end Poe;
39 procedure Chk is new Check (Poe);
41 begin
42 Chk;
43 end;
45 end;