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 Pack2 is
|
procedure Pack2 is
|
|
|
type Bits_T is record
|
type Bits_T is record
|
B0, B1, B2: Boolean;
|
B0, B1, B2: Boolean;
|
end record;
|
end record;
|
|
|
type State_T is record
|
type State_T is record
|
Valid : Boolean;
|
Valid : Boolean;
|
Value : Bits_T;
|
Value : Bits_T;
|
end record;
|
end record;
|
pragma Pack (State_T);
|
pragma Pack (State_T);
|
|
|
procedure Process (Bits : Bits_T) is begin null; end;
|
procedure Process (Bits : Bits_T) is begin null; end;
|
|
|
State : State_T;
|
State : State_T;
|
|
|
begin
|
begin
|
Process (State.Value);
|
Process (State.Value);
|
end;
|
end;
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.