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

Subversion Repositories openrisc_2011-10-31

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

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

Line No. Rev Author Line
1 304 jeremybenn
--  { dg-do compile }
2
--  { dg-options "-gnatws" }
3
 
4
procedure Addr_Slice is
5
   type Item_Type is record
6
      I : Integer;
7
   end record;
8
 
9
   type Index_Type is (A, B);
10
   for Index_Type use (A => 1, B => 10);
11
 
12
   Item_Array : constant array (Index_Type) of Item_Type
13
     := (A => (I => 10), B => (I => 22));
14
 
15
   Item : Item_Type;
16
   for Item'Address use Item_Array(Index_Type)'Address;
17
begin
18
   null;
19
end;

powered by: WebSVN 2.1.0

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