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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gnat.dg/] [self_aggregate_with_zeros.adb] - Rev 867

Go to most recent revision | Compare with Previous | Blame | View Log

-- { dg-do run }
 
procedure self_aggregate_with_zeros is
 
   type Sensor is record
      Value  : Natural;
      A, B, C, D, E, F, G, H, I, J, K, L, M : Natural;
   end record;
 
   Pressure : Sensor;
 
begin
   Pressure.Value := 256;
   Pressure := (Pressure.Value, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
 
   if Pressure.Value /= 256 then
      raise Program_Error;
   end if;
end;
 

Go to most recent revision | 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.