URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 304 |
Rev 384 |
-- { dg-do compile }
|
-- { dg-do compile }
|
|
|
with Discr12_Pkg; use Discr12_Pkg;
|
with Discr12_Pkg; use Discr12_Pkg;
|
|
|
procedure Discr12 is
|
procedure Discr12 is
|
|
|
subtype Small_Int is Integer range 1..10;
|
subtype Small_Int is Integer range 1..10;
|
|
|
package P is
|
package P is
|
|
|
type PT_W_Disc (D : Small_Int) is private;
|
type PT_W_Disc (D : Small_Int) is private;
|
|
|
type Rec_W_Private (D1 : Integer) is
|
type Rec_W_Private (D1 : Integer) is
|
record
|
record
|
C : PT_W_Disc (D1);
|
C : PT_W_Disc (D1);
|
end record;
|
end record;
|
|
|
type Rec_01 (D3 : Integer) is
|
type Rec_01 (D3 : Integer) is
|
record
|
record
|
C1 : Rec_W_Private (D3);
|
C1 : Rec_W_Private (D3);
|
end record;
|
end record;
|
|
|
type Arr is array (1 .. 5) of Rec_01(Dummy(0));
|
type Arr is array (1 .. 5) of Rec_01(Dummy(0));
|
|
|
private
|
private
|
type PT_W_Disc (D : Small_Int) is
|
type PT_W_Disc (D : Small_Int) is
|
record
|
record
|
Str : String (1 .. D);
|
Str : String (1 .. D);
|
end record;
|
end record;
|
|
|
end P;
|
end P;
|
|
|
begin
|
begin
|
Null;
|
Null;
|
end;
|
end;
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.