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_array.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_array is
4
 
5
   type Value_Bounds is array (1 .. 2) of Natural;
6
 
7
   type Sensor is record
8
      Value  : Natural;
9
      Bounds : Value_Bounds;
10
   end record;
11
 
12
   Pressure : Sensor;
13
 
14
begin
15
   Pressure.Value := 256;
16
   Pressure := (Value => Pressure.Value, Bounds => (1, 2));
17
 
18
   if Pressure.Value /= 256 then
19
      raise Program_Error;
20
   end if;
21
end;

powered by: WebSVN 2.1.0

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