URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 304 |
Rev 384 |
-- { dg-do compile }
|
-- { dg-do compile }
|
|
|
procedure loop_bound is
|
procedure loop_bound is
|
package P is
|
package P is
|
type Base is new Integer;
|
type Base is new Integer;
|
Limit : constant Base := 10;
|
Limit : constant Base := 10;
|
type Index is private;
|
type Index is private;
|
generic package Gen is end;
|
generic package Gen is end;
|
private
|
private
|
type Index is new Base range 0 .. Limit;
|
type Index is new Base range 0 .. Limit;
|
end P;
|
end P;
|
package body P is
|
package body P is
|
package body Gen is
|
package body Gen is
|
type Table is array (Index) of Integer;
|
type Table is array (Index) of Integer;
|
procedure Init (X : in out Table) is
|
procedure Init (X : in out Table) is
|
begin
|
begin
|
for I in 1..Index'last -1 loop
|
for I in 1..Index'last -1 loop
|
X (I) := -1;
|
X (I) := -1;
|
end loop;
|
end loop;
|
end Init;
|
end Init;
|
end Gen;
|
end Gen;
|
end P;
|
end P;
|
package Inst is new P.Gen;
|
package Inst is new P.Gen;
|
begin
|
begin
|
null;
|
null;
|
end;
|
end;
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.