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 }
|
|
|
procedure parameterlessfunc is
|
procedure parameterlessfunc is
|
type Byte is mod 256;
|
type Byte is mod 256;
|
type Byte_Array is array(Byte range <>) of Byte;
|
type Byte_Array is array(Byte range <>) of Byte;
|
subtype Index is Byte range 0..7;
|
subtype Index is Byte range 0..7;
|
subtype Small_Array is Byte_Array(Index);
|
subtype Small_Array is Byte_Array(Index);
|
|
|
function F return Byte_Array is
|
function F return Byte_Array is
|
begin
|
begin
|
return (0..255=>0);
|
return (0..255=>0);
|
end F;
|
end F;
|
|
|
B5: Small_Array := F(Index);
|
B5: Small_Array := F(Index);
|
begin
|
begin
|
null;
|
null;
|
end parameterlessfunc;
|
end parameterlessfunc;
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.