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 338 |
-- { dg-do compile }
|
-- { dg-do compile }
|
|
|
with Ada.Finalization;
|
with Ada.Finalization;
|
with Pack6_Pkg;
|
with Pack6_Pkg;
|
|
|
package Pack6 is
|
package Pack6 is
|
|
|
package Eight_Bits is new Pack6_Pkg (8);
|
package Eight_Bits is new Pack6_Pkg (8);
|
|
|
type Some_Data is record
|
type Some_Data is record
|
Byte_1 : Eight_Bits.Object;
|
Byte_1 : Eight_Bits.Object;
|
Byte_2 : Eight_Bits.Object;
|
Byte_2 : Eight_Bits.Object;
|
end record;
|
end record;
|
|
|
for Some_Data use record
|
for Some_Data use record
|
Byte_1 at 0 range 0 .. 7;
|
Byte_1 at 0 range 0 .. 7;
|
Byte_2 at 1 range 0 .. 7;
|
Byte_2 at 1 range 0 .. 7;
|
end record;
|
end record;
|
|
|
type Top_Object is new Ada.Finalization.Controlled with record
|
type Top_Object is new Ada.Finalization.Controlled with record
|
Data : Some_Data;
|
Data : Some_Data;
|
end record;
|
end record;
|
|
|
end Pack6;
|
end Pack6;
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.