URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 304 |
Rev 338 |
-- { dg-do run }
|
-- { dg-do run }
|
|
|
procedure self_aggregate_with_array is
|
procedure self_aggregate_with_array is
|
|
|
type Value_Bounds is array (1 .. 2) of Natural;
|
type Value_Bounds is array (1 .. 2) of Natural;
|
|
|
type Sensor is record
|
type Sensor is record
|
Value : Natural;
|
Value : Natural;
|
Bounds : Value_Bounds;
|
Bounds : Value_Bounds;
|
end record;
|
end record;
|
|
|
Pressure : Sensor;
|
Pressure : Sensor;
|
|
|
begin
|
begin
|
Pressure.Value := 256;
|
Pressure.Value := 256;
|
Pressure := (Value => Pressure.Value, Bounds => (1, 2));
|
Pressure := (Value => Pressure.Value, Bounds => (1, 2));
|
|
|
if Pressure.Value /= 256 then
|
if Pressure.Value /= 256 then
|
raise Program_Error;
|
raise Program_Error;
|
end if;
|
end if;
|
end;
|
end;
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.