* snames.ads-tmpl (Name_Ivdep): New pragma-related name.
[official-gcc.git] / gcc / testsuite / gnat.dg / array19.adb
blob8667a3f06502b21feb3480a5f35c6528cf09757e
1 -- { dg-do compile }
3 package body Array19 is
5 function N return Integer is
6 begin
7 return 1;
8 end;
10 type Array_Type is array (1 .. N) of Float;
12 type Enum is (One, Two);
14 type Rec (D : Enum := Enum'First) is record
15 case D is
16 when One => null;
17 when Two => A : Array_Type;
18 end case;
19 end record;
21 procedure Proc is
23 R : Rec;
25 function F return Array_Type is
26 begin
27 return (others => 0.0);
28 end F;
30 begin
31 R.A := F;
32 end;
34 end Array19;