Debian Codegraph @

gcc/testsuite/gnat.dg/limited5.adb

raw
1 -- { dg-do compile }
2
3 procedure Limited5 is
4
5 type Command is limited null record;
6 type Command_Array is array (Positive range <>) of Command;
7
8 function To_Commands return Command_Array is
9 begin
10 return Result : Command_Array (1 .. 2);
11 end To_Commands;
12
13 The_Commands : aliased Command_Array := To_Commands;
14
15 begin
16 null;
17 end;