OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [gnat.dg/] [self_aggregate_with_array.adb] - Diff between revs 304 and 338

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;
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.