* c-common.c (get_priority): Add check for
[official-gcc.git] / gcc / testsuite / gnat.dg / self_aggregate_with_array.adb
blob850e5defffc54da34c59a9056b9a97c56698063c
1 -- { dg-do run }
3 procedure self_aggregate_with_array is
5 type Value_Bounds is array (1 .. 2) of Natural;
7 type Sensor is record
8 Value : Natural;
9 Bounds : Value_Bounds;
10 end record;
12 Pressure : Sensor;
14 begin
15 Pressure.Value := 256;
16 Pressure := (Value => Pressure.Value, Bounds => (1, 2));
18 if Pressure.Value /= 256 then
19 raise Program_Error;
20 end if;
21 end;