Require target lra in gcc.dg/pr108095.c
[official-gcc.git] / gcc / testsuite / gnat.dg / entry_queues3.adb
blob2108163a895e97a0ae57d0040563ca525d901462
1 -- { dg-do compile }
3 procedure Entry_Queues3 is
5 generic
6 type Large_Range is range <>;
7 package Queue is
8 end;
10 package body Queue is
11 task T is
12 entry E(Large_Range);
13 end T ;
15 task body T is
16 begin
17 accept E(Large_Range'First) do
18 null;
19 end e ;
20 end T ;
21 end Queue;
23 type Large_Range is range 0 .. Long_Integer'Last;
25 package My_Queue is new Queue(Large_Range); -- { dg-warning "warning" }
27 begin
28 null;
29 end;