OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gnat.dg/] [self_aggregate_with_array.adb] - Rev 154

Compare with Previous | Blame | View Log

-- { dg-do run }
 
procedure self_aggregate_with_array is
 
   type Value_Bounds is array (1 .. 2) of Natural;
 
   type Sensor is record
      Value  : Natural;
      Bounds : Value_Bounds;
   end record;
 
   Pressure : Sensor;
 
begin
   Pressure.Value := 256;
   Pressure := (Value => Pressure.Value, Bounds => (1, 2));
 
   if Pressure.Value /= 256 then
      raise Program_Error;
   end if;
end;
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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