PR ipa/83051
[official-gcc.git] / gcc / testsuite / gnat.dg / uninit_array.adb
blob910bdaf431acbdf81e8d79aea5159603092bb126
1 -- { dg-do compile }
2 -- { dg-options "-gnatws" }
4 with Uninit_Array_Pkg; use Uninit_Array_Pkg;
6 package body Uninit_Array is
8 function F1 return Integer;
9 pragma Inline_Always (F1);
11 function F1 return Integer is
12 Var : Arr;
13 begin
14 return F (Var(Var'First(1)));
15 end;
17 function F2 return Integer is
18 begin
19 return F1;
20 end;
22 end Uninit_Array;