]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gnat.dg/varsize4.adb
Fix warning on new Ada testcase
[thirdparty/gcc.git] / gcc / testsuite / gnat.dg / varsize4.adb
CommitLineData
4d8b41bb
EB
1-- { dg-do compile }
2
3package body Varsize4 is
4
1c1ee809 5 function Func (Bytes_Read : out Natural) return Arr is
4d8b41bb
EB
6 Ret : Arr := (others => False);
7 begin
1c1ee809 8 Bytes_Read := 0;
4d8b41bb
EB
9 return Ret;
10 end;
11
12 function Get return Natural is
13 Data : Arr;
14 Bytes : Natural;
15 begin
16 Data := Func (Bytes);
17 return Bytes;
18 end;
19
20end Varsize4;