summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gnat.dg/discr_range_check.adb
blob: 4a4ae6886139de7562645e09d182280223262212 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
-- { dg-do compile }
-- { dg-options "-gnatws" }

procedure discr_range_check is
   Default_First_Entry : constant := 1;

   task type Server_T (First_Entry : Positive := Default_First_Entry) is
      entry E (First_Entry .. First_Entry);
   end Server_T;

   task body Server_T is begin null; end;

   type Server_Access is access Server_T;
   Server : Server_Access;

begin   
   Server := new Server_T;
end;