Require target lra in gcc.dg/pr108095.c
[official-gcc.git] / gcc / testsuite / gnat.dg / aggr28.adb
blob3375b71346f12912fa275d4e7857bf103d2e0dc4
1 -- { dg-do run }
3 procedure Aggr28 is
5 Count : Natural := 0;
7 function Get (S: String) return String is
8 begin
9 Count := Count + 1;
10 return S;
11 end;
13 Max_Error_Length : constant := 8;
14 subtype Error_Type is String (1 .. Max_Error_Length);
16 type Rec is record
17 Text : Error_Type;
18 end record;
20 type Arr is array (1 .. 16) of Rec;
22 Table : constant Arr :=
23 (3 => (Text => Get ("INVALID ")), others => (Text => Get ("OTHERS ")));
25 begin
26 if Count /= Table'Length then
27 raise Program_Error;
28 end if;
29 end;