Require target lra in gcc.dg/pr108095.c
[official-gcc.git] / gcc / testsuite / gnat.dg / array36.adb
blob9f4314cb9ad630b76aad36890da37c6d28014f6a
1 -- { dg-do run }
3 procedure Array36 is
5 subtype Str is String (1 .. 3);
7 type Rec is record
8 S : Str;
9 end record;
11 type T is record
12 B : Boolean;
13 R : Rec;
14 end record;
16 for T use record
17 B at 0 range 0 .. 0;
18 R at 0 range 1 .. 24;
19 end record;
21 X : T := (B => True, R => (S => "123"));
23 begin
24 X.B := False;
25 if X.R.S /= "123" then
26 raise Program_Error;
27 end if;
28 end;