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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gnat.dg/] [self_aggregate_with_zeros.adb] - Blame information for rev 304

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 304 jeremybenn
-- { dg-do run }
2
 
3
procedure self_aggregate_with_zeros is
4
 
5
   type Sensor is record
6
      Value  : Natural;
7
      A, B, C, D, E, F, G, H, I, J, K, L, M : Natural;
8
   end record;
9
 
10
   Pressure : Sensor;
11
 
12
begin
13
   Pressure.Value := 256;
14
   Pressure := (Pressure.Value, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
15
 
16
   if Pressure.Value /= 256 then
17
      raise Program_Error;
18
   end if;
19
end;

powered by: WebSVN 2.1.0

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