URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 304 |
Rev 338 |
-- { dg-do compile }
|
-- { dg-do compile }
|
-- { dg-options "-gnatws" }
|
-- { dg-options "-gnatws" }
|
|
|
procedure Addr_Slice is
|
procedure Addr_Slice is
|
type Item_Type is record
|
type Item_Type is record
|
I : Integer;
|
I : Integer;
|
end record;
|
end record;
|
|
|
type Index_Type is (A, B);
|
type Index_Type is (A, B);
|
for Index_Type use (A => 1, B => 10);
|
for Index_Type use (A => 1, B => 10);
|
|
|
Item_Array : constant array (Index_Type) of Item_Type
|
Item_Array : constant array (Index_Type) of Item_Type
|
:= (A => (I => 10), B => (I => 22));
|
:= (A => (I => 10), B => (I => 22));
|
|
|
Item : Item_Type;
|
Item : Item_Type;
|
for Item'Address use Item_Array(Index_Type)'Address;
|
for Item'Address use Item_Array(Index_Type)'Address;
|
begin
|
begin
|
null;
|
null;
|
end;
|
end;
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.